Class SerializationHelper
Utility class for xml serialization
Inherited Members
Namespace: SuperOffice.CRM.Services.Util
Assembly: SoCore.dll
Syntax
public sealed class SerializationHelper
Fields
xmlSerializers
Utility class for xml serialization
Declaration
public static Dictionary<Type, XmlSerializer> xmlSerializers
Field Value
Type | Description |
---|---|
Dictionary<Type, XmlSerializer> |
Methods
CreateSerializer(Type, string)
Utility class for xml serialization
Declaration
public static XmlSerializer CreateSerializer(Type targetType, string rootElementName)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | |
string | rootElementName |
Returns
Type | Description |
---|---|
XmlSerializer |
EnterReadXml(XmlReader, string)
Helper method for using the ReadXml(XmlReader)
Declaration
public static SerializationHelper.ReadXmlHelper EnterReadXml(XmlReader reader, string firstElementName)
Parameters
Type | Name | Description |
---|---|---|
XmlReader | reader | The reader de-serializating from |
string | firstElementName | Name of the first element to read. |
Returns
Type | Description |
---|---|
SerializationHelper.ReadXmlHelper | Implementation of IDisposable cleaning up state in the reader with regard to handling outer xml. |