ערוך

שתף באמצעות


TypeName.IsSimple Property

Definition

Gets a value that indicates whether this is a "plain" type; that is, not an array, not a pointer, not a reference, and

not a constructed generic type. Examples of elemental types are "System.Int32",

"System.Uri", and "YourNamespace.YourClass".

public:
 property bool IsSimple { bool get(); };
public bool IsSimple { get; }
member this.IsSimple : bool
Public ReadOnly Property IsSimple As Boolean

Property Value

Remarks

This property returning true doesn't mean that the type is a primitive like string

or int; it just means that there's no underlying type.

This property will return true for generic type definitions (for example, "Dictionary<,>").

This is because determining whether a type truly is a generic type requires loading the type

and performing a runtime check.

Applies to