In C #, it's easy to bind an object to the place where it is currently stored using the "fixed" keyword. Here is an example from MSDN :
unsafe static void TestMethod()
{
Point pt = new Point();
fixed (int* p = &pt.x)
{
*p = 1;
}
}
How can this be done in F #?
source
share