Пример #1
0
        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);
            }
        }
Пример #2
0
 public Heap(string objectName)
 {
     ObjectFrame = new ObjectFrame(objectName, this, NodeKind.Class);
 }