pointer and address?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
In C++, we have pointer and address. How would we handle them when C++ code is converted to C#?
Hi There, You do that by using the unsafe keyword, pointers are not safe type in c#, and as you know c# uses managed code which uses garbage collector, but in un-managed code the garbage collector cant interfear, pointers in c# requires writing unmanaged code, therefore you have to use the unsafe keyword.
Sincerely Samer Abu Rabie Imagination is more important than knowledge !