Show/Hide Toolbars

XSharp

Purpose

Declare a interface name to the compiler.

Syntax

 [Attributes] [Modifiers] INTERFACE <idInterface> [INHERIT <idInterface>]
 [InterfaceMembers]

 END INTERFACE

Arguments

AttributesAn optional list of one or more attributes that describe meta information for am entity, such as for example the [TestMethod] attribute on a method/function containing tests in a MsTest class library. Please note that Attributes must be on the same line or suffixed with a semi colon when they are written on the line above that keyword.

 

ModifiersAn optional list of modifiers that specify the visibility or scope of the entity, such as PUBLIC, PROTECTED, HIDDEN, INTERNAL, SEALED, ABSTRACT or STATIC.

 

 

<idInterface>A valid identifier name for the class.  A class is an entity and, as such, shares the same name space as other entities.  This means that it is not possible to have a class and a global variable, for example, with the same name.

 

INHERIT <idInterface>The name of an existing class (called a superclass) from which the new class inherits methods and instance variables (with the exception of HIDDEN).

 

InterfaceMembersThis can be any of ACCESS, ASSIGN, METHOD, OPERATOR, PROPERTY, EVENT

Description

Notess

See Also

ACCESS, ASSIGN, CLASS, EVENT, METHOD, OPERATOR, PROPERTY, STRUCTURE