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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Oct 10, 2011, 10:16 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 10, 2011, 10:36 AM EDT
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".
VulpesRank #55 · 29.2K reputationPosted Oct 10, 2011, 11:05 AM EDT
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.