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

    Property Value

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