C# Class RestSharp.Serializers.XmlSerializer

Default XML Serializer
Inheritance: ISerializer
Mostra file Open project: nicwise/RestSharp Class Usage Examples

Public Methods

Method Description
Serialize ( object obj ) : string

Serialize the object as XML

XmlSerializer ( ) : System

Default constructor, does not specify namespace

XmlSerializer ( string @namespace ) : System

Specify the namespaced to be used when serializing

Private Methods

Method Description
GetSerializedValue ( object obj ) : string
Map ( System.Xml.Linq.XElement root, object obj ) : void

Method Details

Serialize() public method

Serialize the object as XML
public Serialize ( object obj ) : string
obj object Object to serialize
return string

XmlSerializer() public method

Default constructor, does not specify namespace
public XmlSerializer ( ) : System
return System

XmlSerializer() public method

Specify the namespaced to be used when serializing
public XmlSerializer ( string @namespace ) : System
@namespace string
return System