SerializerSurrogate Class |
Namespace: DHI.Mike1D.Generic
public class SerializerSurrogate : IDataContractSurrogate
The SerializerSurrogate type exposes the following members.
Name | Description | |
---|---|---|
SerializerSurrogate | Initializes a new instance of the SerializerSurrogate class |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCustomDataToExport(MemberInfo, Type) |
During schema export operations, inserts annotations into the schema for non-null return values.
Not implemented
| |
GetCustomDataToExport(Type, Type) |
During schema export operations, inserts annotations into the schema for non-null return values.
Not implemented
| |
GetDataContractType |
The GetDataContractType method maps one type to another.
On serialization, the mapping returned by this method is
subsequently used to transform the original instance to a
surrogated instance by calling the GetObjectToSerialize method.
On deserialization, the mapping returned by this method is
used by the serializer to deserialize into an instance of
the surrogate type. It subsequently calls GetDeserializedObject
to transform the surrogated instance into an instance of the
original type.
If the type is not handled by this class, the input type is
just returned.
| |
GetDeserializedObject |
The GetDeserializedObject method converts the surrogated type
instance to the original type instance. It is required for
deserialization.
Return input object, if not handling type.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetKnownCustomDataTypes |
Sets the collection of known types to use for serialization and deserialization
of the custom data objects.
This method is required during schema export or schema import only if annotations
are inserted into the schema using the GetCustomDataToExport method.
| |
GetObjectToSerialize |
The GetObjectToSerialize method converts the original type instance
to the surrogated type instance. The method is required for serialization.
Return input object, if not handling type
| |
GetReferencedTypeOnImport |
During schema import, returns the type referenced by the schema.
Not implemented
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProcessImportedType |
Processes the type that has been generated from the imported schema.
When importing a schema, this method allows for any imported type and
compilation information to be customized.
Not implemented
| |
RegisterSurrogateHandler |
Register a ISerializerSurrogateHandler to handle one specific type
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |