What is Fixed statement in C#?

Showing Answers 1 - 3 of 3 Answers

ninethsense

  • Nov 19th, 2007
 

The "fixed" statement prevents the garbage collector from relocating a movable variable.

Eg:

fixed ( int* p = &pt.x )
{
    *p = 1;
}


  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