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.
Inheritance
object
Serializer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 |
---|---|---|
System.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. |