Class: Base2art.Serialization.Converters.GenericConverterBase

A base class used for serializing and deserializing Generics, such as KeyValuePair<TKey, TValue>

Inherits

└── System.Object

Implements

Base2art.Serialization.Converters.IConverter

Methods

CanDeserialize(System.Type)

A method that determines whether this converter can deserialize the given type.

Parameter Type Info
type System.Type The type to evalutate for deserialization.

Returns: System.Boolean
=> A value indicating that the object can be deserialized.


CanSerialize(System.Type, System.Object)

A method that determines whether this converter can serialize the given object.

Parameter Type Info
objectType System.Type The type of object to serialize.
value System.Object The object to evalutate for serialization.

Returns: System.Boolean
=> A value indicating that the object can be deserialized.


Deserialize(System.Type, System.Object)

Convert an object to it’s serializable form.

Parameter Type Info
type System.Type The type of object to deserialize.
value System.Object The Object to deserialize.

Returns: System.Object
=> The deserialized representation.


Serialize(System.Type, System.Object)

Convert an object to it’s serialized form.

Parameter Type Info
objectType System.Type The type of object to serialize.
value System.Object The Object to serialize.

Returns: System.Object
=> The serialized representation.

Inherited Methods

  • ToString

  • Equals(System.Object)

  • Equals(System.Object, System.Object)

  • ReferenceEquals(System.Object, System.Object)

  • GetHashCode

  • GetType