Show / Hide Table of Contents

Class SerializationHelper

Utility class for xml serialization

Inheritance
object
SerializationHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top