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
Type | Name |
---|---|
System.Type | type |
DeserializeFromString(String)
Parses the specified value.
View Source
Declaration
public T DeserializeFromString(string value)
Returns
<T>
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
|
DeserializeFromReader(TextReader)
View Source
Declaration
public T DeserializeFromReader(TextReader reader)
Returns
<T>
Parameters
Type | Name |
---|---|
System.IO.TextReader | reader |
SerializeToString(T)
View Source
Declaration
public string SerializeToString(T value)
Returns
System.String
Parameters
Type | Name |
---|---|
<T> | value |
SerializeToWriter(T, TextWriter)
View Source
Declaration
public void SerializeToWriter(T value, TextWriter writer)
Parameters
Type | Name |
---|---|
<T> | value |
System.IO.TextWriter | writer |