Can it is possible that pointer are also in C Sharp
Posted on May 25th , 2009 by Admin
|
|
Can you believe C# supports pointers but in a limited extent. We all know pointer is variable that only holds the memory address of another type. But pointer are little different in C# these declared to hold the memory address of value types and arrays also pointer types are not tracked by the default garbage collection mechanism. Pointers are not allowed to point to a reference type or even to a structure type which contains a reference type. Pointers |
| only point to unmanaged types which includes all basic data types, enum types, other pointer types and structs which contain only unmanaged types. |
|
|