C# Class NServiceBus.XmlSerialization

Inheritance: IDisposable
Show file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Serialize ( ) : void
Write ( System.Xml.Linq.XElement elem, Type t, object obj ) : void
WriteElementNamespaces ( System.Xml.Linq.XElement elem, IReadOnlyList baseTypes ) : void
WriteEntry ( System.Xml.Linq.XElement elem, string name, Type type, object value ) : void
WriteObject ( System.Xml.Linq.XElement elem, string name, Type type, object value, bool useNS = false ) : void
XmlSerialization ( Type messageType, Stream stream, object message, Conventions conventions, XmlSerializerCache cache, bool skipWrappingRawXml, string @namespace = DefaultNamespace ) : System

Private Methods

Method Description
ForceEmptyTagsWithNewlines ( System.Xml.Linq.XDocument document ) : void
GetBaseTypes ( ) : List
IsIndexedProperty ( PropertyInfo propertyInfo ) : bool
SetDefaultNamespace ( System.Xml.Linq.XElement element, System.Xml.Linq.XNamespace newXmlns ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Serialize() public method

public Serialize ( ) : void
return void

Write() public method

public Write ( System.Xml.Linq.XElement elem, Type t, object obj ) : void
elem System.Xml.Linq.XElement
t System.Type
obj object
return void

WriteElementNamespaces() public method

public WriteElementNamespaces ( System.Xml.Linq.XElement elem, IReadOnlyList baseTypes ) : void
elem System.Xml.Linq.XElement
baseTypes IReadOnlyList
return void

WriteEntry() public method

public WriteEntry ( System.Xml.Linq.XElement elem, string name, Type type, object value ) : void
elem System.Xml.Linq.XElement
name string
type System.Type
value object
return void

WriteObject() public method

public WriteObject ( System.Xml.Linq.XElement elem, string name, Type type, object value, bool useNS = false ) : void
elem System.Xml.Linq.XElement
name string
type System.Type
value object
useNS bool
return void

XmlSerialization() public method

public XmlSerialization ( Type messageType, Stream stream, object message, Conventions conventions, XmlSerializerCache cache, bool skipWrappingRawXml, string @namespace = DefaultNamespace ) : System
messageType System.Type
stream Stream
message object
conventions Conventions
cache XmlSerializerCache
skipWrappingRawXml bool
@namespace string
return System