GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlReaderWriterBase Class / GrandParentObject Property
In This Topic
    GrandParentObject Property
    In This Topic
    Gets the parent object of the current parent object when consuming or generating the body of an element.
    Syntax
    public object GrandParentObject {get;}

    Property Value

    This is the Object just under the top one on the ObjectStack, or null if the stack is empty or has only one object in it.
    Remarks
    This property is useful when nested calls to Allocate (and ConsumeAttributes) need to look at the parent object of the parent object to decide whether an existing (grand-)child object should be returned instead of allocating a new one.
    See Also