Click or drag to resize

SerializationHelper Class

SerializationHelper is a set of static methods to help in the process of deserialization of an object graph.
Inheritance Hierarchy
SystemObject
  Atalasoft.ImagingSerializationHelper

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public sealed class SerializationHelper

The SerializationHelper type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetValue(SerializationInfo, String, Boolean)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Byte)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Char)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, DateTime)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Decimal)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Double)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Int16)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Int32)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Int64)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Single)
Get a value from a SerializationInfo object
Public methodStatic memberGetValue(SerializationInfo, String, Type)
Get an object from a SerializationInfo object.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
In the current .NET model, one must ask for a field within a serialization object acting under the assumption that it will be there. If the field isn't there, an Exception is thrown. An object is deserializable if and only if all fields of an object have been serialized. In the dotImage model, an object is constructed with default values which are then replaced by the information in the SerializationInfo object. In dotImage this makes more sense since several objects' underlying data is optional or mutually exclusive. To retrieve a scalar, pass GetValue() the SerializationInfo object, the name of the field, and a reference to the variable that will hold the value. GetValue() will return true if it performed an assignment to the variable. To retrieve a non-scalar type, pass GetValue() the SerializationInfo object, the name of the field and its expected Type. GetValue will return the object if it found it, null otherwise.
See Also