Mono Class Library: System.Type Overview | Members

System.Type.IsPrimitive Property

Gets a bool value indicating whether the current Type is one of the primitive types.

public bool IsPrimitive { get; }

Value

true if the Type is one of the primitive types; otherwise, false.

Remarks

This property is read-only.

The primitive types are bool, byte, sbyte, short, ushort, int, uint, long, ulong, char, double, and float.

If the current instance represents a generic type, or a 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