Show/Hide Toolbars

XSharp

The modifier 'modifier' is not valid for this item

 

A class or interface member was marked with an invalid access modifier. The following examples describe some of these invalid modifiers:

 

The static and public modifiers are not permitted on interface methods.

The public keyword is not allowed on an explicit interface declaration. In this case, remove the public keyword from the explicit interface declaration.

The abstract keyword is not allowed on an explicit interface declaration because an explicit interface implementation can never be overridden.

 

In prior releases of Visual Studio, the static modifier was not permitted on a class, but static classes are allowed starting with Microsoft Visual Studio 2005.

 

For more information, see Interfaces

Example

 

The following sample generates XS0106.

 

 

// XS0106.prg