Type::IsInterface Property
Silverlight
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)
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.
This property is read-only.
The following example creates an interface, checks for the interface type, and indicates whether a class has the IsInterface property set.
Note: |
|---|
To run this example, see Building Examples That Use a Demo Method and a TextBlock Control. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show:
Note: