GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlTransformer Class / GenerateDefinitions Method
the object being generated
In This Topic
    GenerateDefinitions Method (GoXmlTransformer)
    In This Topic
    Generate elements for the definitions section of the document, rendering any shared objects that this object needs to refer to.
    Syntax
    public virtual void GenerateDefinitions( 
       object obj
    )

    Parameters

    obj
    the object being generated
    Remarks
    This is called by GoXmlWriter.DefineObject. If IdAttributeUsedForSharedObjects is true, this first associates an identifier with the given obj by calling GoXmlWriter.GoXmlWriter.MakeShared This method then calls GenerateDefinitions on the InheritsFromTransformer, to allow another specific transformer to implement this behavior, or else calls GoXmlWriter.GoXmlWriter.InvokeGenerateDefinitions, to allow this TransformerType's base Type to provide a default behavior.
    See Also