Skip to content

C# fixed method

ravi kumar

Asked Dec 24, 2005, 2:19 AM EST1 answer
Share
LinkedInX
Hi I am new to c#.NET. I have a problem with fixed method in C#.NET. I cann't understandard what does the following code means. Please anyone can explain this In my code unsafe { fixed(sbyte * sp = ByteValue); String newinstance = new String(sp); } whereas ByteValue is sbyte data type. Please explain the unsafe and fixed method Thanks in Advance. Regards R.Ravikumar

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    In C#,pointers have been seen as unsafe operation. They are can only be used in unsafe context.
    fix is a lock method that GC can't collect fixed memory in heap.
    0