C# fixed method
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.
Tom Diann16 pointsPosted Dec 27, 2005, 10:17 PM EST
fix is a lock method that GC can't collect fixed memory in heap.