LiquidTechnologies.XmlObjects Namespace / LxSerializer Class / LxSerializer Constructor / LxSerializer Constructor(Serializer)
An existing serializer with type information already registered. This type information will then be available to this serializer.

In This Topic
    LxSerializer Constructor(Serializer)
    In This Topic
    Constructs an LxSerializer, required for serializing and de-serializing Liquid XML Objects attributed classes. Uses the type information registered with the serializer
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal serializer As Serializer _
    )
    public LxSerializer( 
       Serializer serializer
    )

    Parameters

    serializer
    An existing serializer with type information already registered. This type information will then be available to this serializer.
    Remarks
    Allows the serializer to be initialized from an existing Serializer instance (typically this would be a serializer of a different type i.e. LjSerializer). The creation of a new serializer can be quite expensive as it needs to scan for LXO generated objects. So for performance reasons it may make sense to only perform this work once. This class uses the serializer object, so any assemblies registered against this object using the RegisterAssembly, will also be registered against the serializer object.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

    See Also