Skip to main content

JsonDataContractSerializer

Assembly: ServiceStack.Client.dll
View Source
Declaration
public class JsonDataContractSerializer : IStringSerializer

Properties

TextSerializer

View Source
Declaration
public IStringSerializer TextSerializer { get; set; }

UseBcl

View Source
Declaration
public bool UseBcl { get; set; }

Fields

Instance

View Source
Declaration
public static JsonDataContractSerializer Instance

Methods

UseSerializer(IStringSerializer)

View Source
Declaration
public static void UseSerializer(IStringSerializer textSerializer)
Parameters
TypeName
ServiceStack.Text.IStringSerializertextSerializer

SerializeToString<T>(T)

View Source
Declaration
public string SerializeToString<T>(T obj)
Returns

System.String

Parameters
TypeName
<T>obj
Type Parameters
  • T

BclSerializeToString<T>(T)

View Source
Declaration
public static string BclSerializeToString<T>(T obj)
Returns

System.String

Parameters
TypeName
<T>obj
Type Parameters
  • T

SerializeToStream<T>(T, Stream)

View Source
Declaration
public void SerializeToStream<T>(T obj, Stream stream)
Parameters
TypeName
<T>obj
System.IO.Streamstream
Type Parameters
  • T

BclSerializeToStream<T>(T, Stream)

View Source
Declaration
public static void BclSerializeToStream<T>(T obj, Stream stream)
Parameters
TypeName
<T>obj
System.IO.Streamstream
Type Parameters
  • T

DeserializeFromString(String, Type)

View Source
Declaration
public object DeserializeFromString(string json, Type returnType)
Returns

System.Object

Parameters
TypeName
System.Stringjson
System.TypereturnType

BclDeserializeFromString(String, Type)

View Source
Declaration
public static object BclDeserializeFromString(string json, Type returnType)
Returns

System.Object

Parameters
TypeName
System.Stringjson
System.TypereturnType

DeserializeFromString<T>(String)

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

<T>

Parameters
TypeName
System.Stringjson
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

BclDeserializeFromStream(Type, Stream)

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

System.Object

Parameters
TypeName
System.Typetype
System.IO.Streamstream

Implements