Show/Hide Toolbars

XSharp

'class' is not an attribute class

 

An attempt was made to use a non-attribute class in an attribute block. All the attribute types need to be inherited from System.Attribute.

Example

 

The following sample generates XS0616.

 

 

// XS0616.prg  
// compile with: /target:library  
 

 

 

Example

 

The following sample shows how you might define an attribute:

 

 

// CreateAttrib.prg  
// compile with: /target:library