Surrogate<T> Class

Base class for classes surrogates.
Public MustInherit Class Surrogate(Of  _ 
T)
This language is not supported or no code example is available.
public abstract class Surrogate<T>
This language is not supported or no code example is available.

Type Parameters

T

The class related to the surrogate.

Name Description
Protected constructor Surrogate(T) Standard constructor.
Top
Name Description
Public property Log Gets the list of errors and warnings generated during the serialization/deserialization processes.
Top
Methods
 
Name Description
Protected method AfterDeserialize(ProtoBuf.SerializationContext) Called after the object deserialization.
Protected method BeforeDeserialize(ProtoBuf.SerializationContext) Called before the object deserialization.
Protected method BeforeSerialize(ProtoBuf.SerializationContext) Called before the object serialization.
Protected method ConvertToObject() Creates the object related to the surrogate.
Protected method CopyDataFromObject(T) Copies all data from the object to its surrogate.
Protected method CopyDataToObject(T) Copies common data from surrogate to object.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Protected method WriteLog(string) Writes a message into the log.
Top
Fields
 
Name Description
Public field Surrogate.Tag Gets or sets the file header tag (for deserialization purpose only).
Protected field Surrogate.Version Gets or sets the Eyeshot proprietary file format version.
Top
devDept.Serialization.Surrogate<T>

.NET Framework

Supported in: 4.8

In this article

Definition