DataContractSerializer
Assembly: ServiceStack.Client.dll
View Source
Declaration
public class DataContractSerializer : IStringSerializer
Fields
Instance
View Source
Declaration
public static DataContractSerializer Instance
Methods
Parse<XmlDto>(XmlDto, Boolean)
View Source
Declaration
public string Parse<XmlDto>(XmlDto from, bool indentXml)
Returns
System.String
Parameters
Type | Name |
---|---|
<XmlDto> | from |
System.Boolean | indentXml |
Type Parameters
XmlDto
SerializeToString<XmlDto>(XmlDto)
View Source
Declaration
public string SerializeToString<XmlDto>(XmlDto from)
Returns
System.String
Parameters
Type | Name |
---|---|
<XmlDto> | from |
Type Parameters
XmlDto
SerializeToStream(Object, Stream)
View Source
Declaration
public void SerializeToStream(object obj, Stream stream)
Parameters
Type | Name |
---|---|
System.Object | obj |
System.IO.Stream | stream |
CompressToStream<XmlDto>(XmlDto, Stream)
View Source
Declaration
public void CompressToStream<XmlDto>(XmlDto from, Stream stream)
Parameters
Type | Name |
---|---|
<XmlDto> | from |
System.IO.Stream | stream |
Type Parameters
XmlDto
Compress<XmlDto>(XmlDto)
View Source
Declaration
public byte[] Compress<XmlDto>(XmlDto from)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
<XmlDto> | from |
Type Parameters
XmlDto
DeserializeFromString(String, Type)
View Source
Declaration
public object DeserializeFromString(string xml, Type type)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | xml |
System.Type | type |
DeserializeFromString<T>(String)
View Source
Declaration
public T DeserializeFromString<T>(string xml)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | xml |
Type Parameters
T
DeserializeFromStream<T>(Stream)
View Source
Declaration
public T DeserializeFromStream<T>(Stream stream)
Returns
<T>
Parameters
Type | Name |
---|---|
System.IO.Stream | stream |
Type Parameters
T
DeserializeFromStream(Type, Stream)
View Source
Declaration
public object DeserializeFromStream(Type type, Stream stream)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Type | type |
System.IO.Stream | stream |