CallStack

References
public sealed class CallStack
Represents the stack of objects that form the invocation sequence to a specific IDocumentObject. This is typically used to figure out whether an invocation sequence is in fact a loop (i.e. cyclical), but it may be useful for other purposes too.

Properties

All

#
public IEnumerable<IDocumentObject> All { get; }
Iterate over all objects in the stack.

Empty

#
public static CallStack Empty { get; }
Gets an empty call stack.

Methods

Contains

#
public bool Contains(Guid id)
Test whether an object with the given instance ID is present in the invocation stack.
id (Guid)
True if the object is part of the stack.

Contains

#
public bool Contains(IDocumentObject obj)
Test whether an object is present in the invocation stack.
obj (IDocumentObject)Object to search for.
True if the object is part of the stack.

Pop

#
public CallStack Pop()
Pop the head off this stack.

Operators

OperationResultDescription
CallStack+IDocumentObjectCallStackPush a new object to the head of this stack.