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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version