Attribute with supplement information : Attribute Definition : Attribute C# Examples


C# Examples » Attribute » Attribute Definition »

 

Attribute with supplement information









    
using  System;

[AttributeUsage(AttributeTargets.All)]  
public  class  MyAttribute  :  Attribute  {  
    string  remark;
  
    public  string  supplement;
  
    public  MyAttribute(string  comment)  {  
        remark  =  comment;  
        supplement  =  "None";  
    }  
  
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Attribute
» Attribute Definition