GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlReaderWriterBase Class / SetTransformer Method
a Type representing a class; must not be null
an IGoXmlTransformer; if null, removes any existing transformer for the type t
In This Topic
    SetTransformer Method
    In This Topic
    Cause this XML writer to use the given IGoXmlTransformer for objects of the type given by t.
    Syntax
    public IGoXmlTransformer SetTransformer( 
       Type t,
       IGoXmlTransformer g
    )

    Parameters

    t
    a Type representing a class; must not be null
    g
    an IGoXmlTransformer; if null, removes any existing transformer for the type t
    Remarks
    Although it's most common to use AddTransformer to register an IGoXmlTransformer for a class Type, if you want to share the same transformer for multiple Types, you can do so using this method.
    See Also