Mono Class Library: System.Type Overview | Members

System.Type.IsClass Property

Gets a bool value that indicates whether the current Type represents a class.

public bool IsClass { get; }

Value

true if the current Type represents a class; otherwise false.

Remarks

This property is read-only.

Note that this property returns true for Type instances representing Enum and ValueType .

If the current instance represents a generic type, this property returns true if the generic type definition is a class definition (that is, it does not define an interface or a value type).

If the current instance represents an unassigned type parameter of a generic type or method, this property always returns false.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0