Quote:
Originally posted by deja
reference type in c# are safe pointers, in contrast of c++ (and other languages) pointers.
there r three types of memory location in .NET applications.
the stack, the heap and the static.
stack contains value types variables which are primitive variables (int, char, struct etc.).
in the heap reside all reference type (user defined objects, .NET base class objects, delegates etc.).
and the static contains all the elements that have been declared as static (methods, variables, classes etc.)
pointers in c++ r very dangerous, because u can modify them to point to any memory location you would like, c# reference variables r pointing to instance objects in the heap, but u cannot assign to them some arbitrary memory address, and that's the big difference.
That's cool deja :D , thanx for the help