Skip to main content

TypeSerializer<T>

Assembly: ServiceStack.Text.dll
View Source
Declaration
public class TypeSerializer<T> : ITypeSerializer<T>

Methods

CanCreateFromString(Type)

View Source
Declaration
public bool CanCreateFromString(Type type)
Returns

System.Boolean

Parameters
TypeName
System.Typetype

DeserializeFromString(String)

Parses the specified value.

View Source
Declaration
public T DeserializeFromString(string value)
Returns

<T>

Parameters
TypeNameDescription
System.StringvalueThe value.

|

DeserializeFromReader(TextReader)

View Source
Declaration
public T DeserializeFromReader(TextReader reader)
Returns

<T>

Parameters
TypeName
System.IO.TextReaderreader

SerializeToString(T)

View Source
Declaration
public string SerializeToString(T value)
Returns

System.String

Parameters
TypeName
<T>value

SerializeToWriter(T, TextWriter)

View Source
Declaration
public void SerializeToWriter(T value, TextWriter writer)
Parameters
TypeName
<T>value
System.IO.TextWriterwriter

Implements