Partager 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 the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Type Class
Type Members
System Namespace