How do I know an array of structures was allocated in the Large Object Heap (LOH) in .NET?
- by AMissico
After some experimenation using CLR Profiler, I found that:
Node[,] n = new Node[100,23]; //'84,028 bytes, is not placed in LOH
Node[,] n = new Node[100,24]; //'86,428 bytes, is
public struct Node {
public int Value;
public Point Point;
public Color Color;
public bool Handled;
public Object Tag;
}
During run-time, how do I know an array of structures (or any array) was allocated in the Large Object Heap (LOH)?