Click or drag to resize
DictionarySerializationContext Class
Context for converting objects to dictionaries and back.
Inheritance Hierarchy
SystemObject
  Slash.Serialization.DictionaryDictionarySerializationContext

Namespace: Slash.Serialization.Dictionary
Assembly: Slash.Serialization (in Slash.Serialization.dll) Version: 1.0.6018.40176
Syntax
public class DictionarySerializationContext

The DictionarySerializationContext type exposes the following members.

Constructors
  NameDescription
Public methodDictionarySerializationContext
Constructor.
Top
Properties
  NameDescription
Public propertySettings
Settings for serialization/deserialization.
Public propertyVersion
Version number of serialization. Used to be compatible with older versions.
Top
Methods
  NameDescription
Public methodCanSerialize
Checks whether this context is able to serialize the specified type.
Public methodDeserialize(Type, Object)
Deserializes the object from the passed data dictionary.
Public methodDeserializeT(Object)
Deserializes the object from the passed data dictionary.
Public methodDeserializeContext
Deserializes this context from the passed data dictionary.
Public methodGetSerializer
Gets the custom serializer of this context for the specified type.
Public methodIsRawSerializationPossible
Checks if a value of the specified type can be serialized directly or has to converted to a dictionary first. If it can be serialized directly, no type information has to be stored to deserialize the value.
Public methodSerialize
Serializes the passed object to a data dictionary.
Public methodSerializeContext
Serializes this context to a data dictionary.
Public methodSetSerializer
Sets the custom serializer of this context for the specified type.
Public methodTryDeserializeT(DictionaryString, Object, String)
Tries to deserialize the value with the specified key in the specified data dictionary. If the key is not found, the default value of the specified type is returned.
Public methodTryDeserializeT(DictionaryString, Object, String, T)
Tries to deserialize the value with the specified key in the specified data dictionary. If the key is not found, the specified default value is returned.
Top
See Also