C# Type IsPointer
Description
Type IsPointer
gets a value indicating whether the Type
is a pointer.
Syntax
Type.IsPointer
has the following syntax.
public bool IsPointer { get; }
Example
The following example shows a use of the IsPointer property.
/* ww w . j av a 2 s . c o m*/
using System;
using System.Reflection;
public class Type_HasElementTypeImpl
{
public static void Main()
{
try
{
int myInt = 0 ;
int[] myArray = new int[5];
Console.WriteLine(myArray.GetType().IsPointer);
}
catch( Exception e )
{
Console.WriteLine("Exception: {0}", e.Message);
}
}
}
The code above generates the following result.