Skip to main content

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
TypeName
<XmlDto>from
System.BooleanindentXml
Type Parameters
  • XmlDto

SerializeToString<XmlDto>(XmlDto)

View Source
Declaration
public string SerializeToString<XmlDto>(XmlDto from)
Returns

System.String

Parameters
TypeName
<XmlDto>from
Type Parameters
  • XmlDto

SerializeToStream(Object, Stream)

View Source
Declaration
public void SerializeToStream(object obj, Stream stream)
Parameters
TypeName
System.Objectobj
System.IO.Streamstream

CompressToStream<XmlDto>(XmlDto, Stream)

View Source
Declaration
public void CompressToStream<XmlDto>(XmlDto from, Stream stream)
Parameters
TypeName
<XmlDto>from
System.IO.Streamstream
Type Parameters
  • XmlDto

Compress<XmlDto>(XmlDto)

View Source
Declaration
public byte[] Compress<XmlDto>(XmlDto from)
Returns

System.Byte[]

Parameters
TypeName
<XmlDto>from
Type Parameters
  • XmlDto

DeserializeFromString(String, Type)

View Source
Declaration
public object DeserializeFromString(string xml, Type type)
Returns

System.Object

Parameters
TypeName
System.Stringxml
System.Typetype

DeserializeFromString<T>(String)

View Source
Declaration
public T DeserializeFromString<T>(string xml)
Returns

<T>

Parameters
TypeName
System.Stringxml
Type Parameters
  • T

DeserializeFromStream<T>(Stream)

View Source
Declaration
public T DeserializeFromStream<T>(Stream stream)
Returns

<T>

Parameters
TypeName
System.IO.Streamstream
Type Parameters
  • T

DeserializeFromStream(Type, Stream)

View Source
Declaration
public object DeserializeFromStream(Type type, Stream stream)
Returns

System.Object

Parameters
TypeName
System.Typetype
System.IO.Streamstream

Implements