Class Serializer
A static class that serializes types that it can find implementations of ISerializer for and deserializes types that it can find implementations of IDeserializer for.
Inherited Members
Namespace: InsaneScatterbrain.Serialization
Syntax
public static class Serializer
Methods
Deserialize(Type, string)
Deserializes the given string to an object of the given type.
Declaration
public static object Deserialize(Type type, string serializedObj)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type to serialize to. |
string | serializedObj | The serialized string. |
Returns
Type | Description |
---|---|
object | The deserialized object. |
Serialize(object)
Serializes the given object to string.
Declaration
public static string Serialize(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to serialize. |
Returns
Type | Description |
---|---|
string | The serialized string. |