4 ms·
Don't unsafe pointers in C# also opt you out of GC?
by akgoel 12y ago
Don't unsafe pointers in C# also opt you out of GC?
- matthewwarren 12y agoYeah pretty much, you can use fixed [1], to access managed memory in an unsafe way. The GC then treats this as pinned and won't relocate it. [1] http://msdn.microsoft.com/en-gb/library/f58wzh21(v=vs.71).aspx http://msdn.microsoft.com/en-gb/library/f58wzh21(v=vs.71).as...