Class TypeSerializerDefinitions
Contains TypeSerializer<T> definitions for the driver to use, replacing the default ones.
Inheritance
System.Object
TypeSerializerDefinitions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Serialization
Assembly: Dse.dll
Syntax
public class TypeSerializerDefinitions
Methods
Define<T>(TypeSerializer<T>)
Defines a new TypeSerializer<T> instance to use.
If you try to define a serializer for a type that was already defined, the driver will log a warning and ignore it.
Declaration
public TypeSerializerDefinitions Define<T>(TypeSerializer<T> typeSerializer)
Parameters
Type | Name | Description |
---|---|---|
TypeSerializer<T> | typeSerializer |
Returns
Type | Description |
---|---|
TypeSerializerDefinitions |
Type Parameters
Name | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | |
InvalidTypeException | When trying to define a Serializer for types that are not allowed. |