IsInterface Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a value indicating whether the Type is an interface; that is, not a class or a value type.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public:
property bool IsInterface {
	bool get ();
}

Property Value

Type: System..::..Boolean
true if the Type is an interface; otherwise, false.

The ClassSemanticsMask distinguishes a type declaration as class, interface or value type.

If the current Type represents a type parameter in the definition of a generic type or generic method, this property always returns false.

Show: