GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlBindingTransformer Class / Allocate Method
In This Topic
    Allocate Method (GoXmlBindingTransformer)
    In This Topic
    Construct an object for this element by making a copy of the Prototype.
    Syntax
    public override object Allocate()

    Return Value

    a copy of the value of Prototype
    Remarks
    If the Prototype is a Northwoods.Go.GoObject or a Northwoods.Go.GoDocument, this returns the value of Northwoods.Go.GoObject.Copy. If the Prototype implements the ICloneable interface, this returns the value of Clone(). Otherwise this raises an exception. When a copy is made, and when the GoXmlReaderWriterBase.ParentObject's GoXmlBindingTransformer's HandlesChildAttributes property is true, this calls ConsumeChildAttributes on that parent class's transformer to allow it to consume attributes of this current element.
    See Also