Class ServiceStackTextHelper
Inheritance
System.Object
ServiceStackTextHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public static class ServiceStackTextHelper
Methods
Deserialize(String, Type)
Declaration
public static object Deserialize(string value, Type type)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | |
System.Type | type |
Returns
Type | Description |
---|---|
System.Object |
Deserialize<T>(String)
Declaration
public static T Deserialize<T>(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
DeserializeFromStream(Stream, Type)
Deserializes stream content to required type.
Declaration
public static object DeserializeFromStream(Stream value, Type type)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | value | Instance of the System.IO.Stream to deserialize from. |
System.Type | type | Instance of the System.Type to deserialize to. |
Returns
Type | Description |
---|---|
System.Object | Deserialized instance of the |
Serialize(Object)
Declaration
public static string Serialize(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type | Description |
---|---|
System.String |