Show/Hide Toolbars

XSharp

Inconsistent accessibility: field type 'type' is less accessible than field 'field'

 

The type of a field cannot be less accessible than the field itself because all public constructs must return a publicly accessible object.

Example

 

The following sample generates XS0052:

 

 

// XS0052.prg