Show/Hide Toolbars

XSharp

Property, indexer, or event 'name' is not supported by the language; try directly calling accessor method 'name!'

 

This error occurs when using imported metadata that was generated by another compiler. Your code attempted to use a class member that the compiler cannot process.

Example

 

The following C++ program uses an attribute, RequiredAttributeAttribute, which may not be consumed by other languages.

 

 

// CPP0570.cpp  
// compile with: /clr /LD  
 

 

Example

 

The following sample generates XS0570.

 

 

// XS0570.prg  
// compile with: /reference:CPP0570.dll