Mono Class Library: System.Type Overview | Members

System.Type.IsValueType Property

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

public bool IsValueType { get; }

Value

true if the current Type represents a value type (structure); otherwise false.

Remarks

This property is read-only.

This property returns true for enumerations, but not for the Enum type itself, which is a class.

Note: For an example that demonstrates this behavior, see Type.IsEnum .

Requirements

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