Share via


Type.IsValueType Property

Gets a value indicating whether the current type is a value type.

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

Syntax

public bool IsValueType { get; }

Property Value

true if the current type is a value type; otherwise, false.

Remarks

Value types are those types that are represented as sequences of bits; they are not classes or interfaces. Note that value types are referred to as "structs" in some programming languages. Enums are a special category of value types.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Type Class
Type Members
System Namespace