what is the major reason for The System.Type class to hold the "IsPointer" property?
I have read that it could be used as the "Isprimitive" to check if the type is primitive or not. is that correct?
what is the major reason for The System.Type class to hold the "IsPointer" property?
I have read that it could be used as the "Isprimitive" to check if the type is primitive or not. is that correct?
On
Just quoting from MSDN:
Type.IsPointerProperty - Gets a value indicating whether theTypeis a pointer.
Type.IsPrimitiveProperty - Gets a value indicating whether theTypeis one of the primitive types.
The primitive types are Boolean, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Char, Double, and Single.
IsPointer - indicates whether the Type is a pointer. Pointer call can be declared even in C# in unsafe block: