public Heap(Instance owningInstance) { OwningInstance = owningInstance ?? throw new ArgumentNullException(nameof(owningInstance)); if (owningInstance.Identities.Count != 0) { ObjectFrame = new ObjectFrame(owningInstance.Identities.Peek()?.Type, this, NodeKind.Class); } else { //root "instance" ObjectFrame = new ObjectFrame("Object", this, NodeKind.Class); } }
public Heap(string objectName) { ObjectFrame = new ObjectFrame(objectName, this, NodeKind.Class); }