Top  Previous  Next

What is partially translated > Pointers > Pointer<T>


The generic class Pointer<T> is used to simulate Delphi pointers to a variable of type T or to an array of such variables. However, for the case that this type is a character type, there is a special PChar class. Both classes have the common IPointer interface.


Pointer<T> has a T[] member variable and a second variable for the current index:



public class Pointer<T>: IPointer<T> where T : new()


   protected T[] m_Array = null;

   protected int FPosition = -1;












This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content