C# pointers

Can we use pointer in c# ?
if we can then how it can implement ?
and if no then why we can not use pointer in c#?

Questions by sajjankumarparjapat

Showing Answers 1 - 2 of 2 Answers

hmehta

  • Jul 8th, 2008
 

we can use pointers in C# within the scope of unsafe code e.g.:
unsafe
{
//all pointer related code here
}

but doing so, makes ur code un managed.
Also, if you want to have pointers to class level variables, you must use fixed keyword.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions