SerializerHelper¶
Namespace: ThinkGeo.Core
Represents the SerializerHelper class.
public class SerializerHelper
Inheritance Object → SerializerHelper
Constructors¶
SerializerHelper()¶
public SerializerHelper()
Methods¶
SerializeCloneDeep<T>(Object)¶
Performs serialize clone deep.
public static T SerializeCloneDeep<T>(object instance)
Type Parameters¶
T
Parameters¶
instance Object
The instance.
Returns¶
T
The result of the operation.
DeepCloneThroughGeoSerializer<T>(T)¶
Deep-clone an object via GeoSerializer.
public static T DeepCloneThroughGeoSerializer<T>(T instance)
Type Parameters¶
T
Parameters¶
instance T
Returns¶
T
Serialize(Object)¶
Serializes the specified value to its JSON string representation.
public static Byte[] Serialize(object instance)
Parameters¶
instance Object
The instance.
Returns¶
Byte[]
An array containing the requested values.
Deserialize<T>(Byte[])¶
Deserializes JSON into an instance of the requested .NET type.
public static T Deserialize<T>(Byte[] bytes)
Type Parameters¶
T
Parameters¶
bytes Byte[]
The byte array to read from or write to.
Returns¶
T
The result of the operation.