What is the use of fixed statement in c#?

Questions by musclebai   answers by musclebai

Showing Answers 1 - 9 of 9 Answers

The fixed keyword is responsible for the pinning of managed objects(maanged by CLR). Pinning is the act of specifying to the GC that the object in question can’t be moved.Permitted in  unsafe context only i.e wwhen u are using pointers in C#.

  Was this answer useful?  Yes

asifdcsku

  • Sep 12th, 2008
 

Fixed is used while doing type casting
Fixed ensures that no exception will be thrown even if we are doing a wrong cast.

  Was this answer useful?  Yes

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