Hi friends,
I want to ask the use of pointers in .net. At how much extent I can use pointers in .net. I also want to know about the disadvantages of pointers in a high level language like .net.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 10, 2011, 3:05 PM
Notice that managed pointers are not the same as object references (implicit in C# and VB and explicit in C++/CLI) though there are some similarities between the two.
Javeed M ShaikhPosted Oct 10, 2011, 2:36 PM
The best way to find your answer is to look at the recommended articles as suggested by Suthish. Following are a few points to start with:
Since it is an Unsafe Code you might run into problems like Complex and hard to maintain code, overwriting other data or variable in the memory which you are not suppose to, overflow stack, type safety checks etc,. so unless it is very much required one should avoid using it. But sometimes you have no option but to use pointers in case if you are using external non .net DLL or want some performance gain.
Please do not forget to mark "Accepted Answer".
Suthish NairPosted Oct 10, 2011, 2:16 PM