BlockSurrogate Class

Defines the Block surrogate.
Public Class BlockSurrogate 
Inherits Surrogate(Of Block)
This language is not supported or no code example is available.
public class BlockSurrogate : Surrogate<Block>
This language is not supported or no code example is available.
Name Description
Public constructor BlockSurrogate(Block) Standard constructor.
Top
Name Description
Public property Log Gets the list of errors and warnings generated during the serialization/deserialization processes. (inherited from Surrogate<T>).
Top
Methods
 
Name Description
Protected method AfterDeserialize(ProtoBuf.SerializationContext) Called after the object deserialization. (inherited from Surrogate<T>).
Protected method BeforeDeserialize(ProtoBuf.SerializationContext) Called before the object deserialization. (inherited from Surrogate<T>).
Protected method BeforeSerialize(ProtoBuf.SerializationContext) Called before the object serialization. (inherited from Surrogate<T>).
Protected method ConvertToObject() Creates the object related to the surrogate.
Protected method CopyDataFromObject(Block)
Protected method CopyDataToObject(Block)
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. (inherited from Surrogate<T>).
Top
Name Description
Operator Static Implicit Conversion (Block to BlockSurrogate) Converts the object to the related surrogate during the serialization process.
Operator Static Implicit Conversion (BlockSurrogate to Block) Converts the surrogate to the related object during the deserialization process.
Top
Fields
 
Name Description
Public field BasePoint See Block.BasePoint.
Public field CustomData The Block.CustomData as ProtoObject.
Public field Description See Block.Description.
Public field Entities See Block.Entities.
Public field FullPath See Block.FullPath.
Public field IsResolved See Block.IsResolved.
Public field MassUnits See Block.MassUnits.
Public field Name See Block.Name.
Public field Surrogate.Tag Gets or sets the file header tag (for deserialization purpose only). (inherited from Surrogate<T>).
Protected field Surrogate.Version Gets or sets the Eyeshot proprietary file format version. (inherited from Surrogate<T>).
Public field Units See Block.Units.
Top

.NET Framework

Supported in: 4.8

In this article

Definition