EntitySurrogate Class

Defines the base class for entity surrogates.
Public Class EntitySurrogate
This language is not supported or no code example is available.
public class EntitySurrogate
This language is not supported or no code example is available.
Methods
 
Name Description
Protected method BeforeDeserialize(ProtoBuf.SerializationContext) Called before the object deserialization.
Protected method BeforeSerialize(ProtoBuf.SerializationContext) Called before the object serialization.
Protected method CheckSurrogateData(contentType, string) Integrity check according to the contentType.
Protected method ConvertToObject() Creates the entity related to the surrogate.
Protected method CopyDataFromObject(Entity)
Protected method CopyDataToObject(Entity)
Protected method CreateGhostEntity(string) Helper method to create a new Ghost entity.
Protected method CreateLinearPathOrGhostEntity(Point3D[], Type) Helper method to create a new LinearPath or a new Ghost entity.
Protected method CreateMeshOrGhostEntity(Point3D[], IndexTriangle[], Type) Helper method to create a new LinearPath or a new Ghost entity.
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).
Top
Name Description
Operator Static Implicit Conversion (Entity to EntitySurrogate) Converts the object to the related surrogate during the serialization process.
Operator Static Implicit Conversion (EntitySurrogate to Entity) Converts the surrogate to the related object during the deserialization process.
Top
Remarks
 
This class is not declared as abstract to handle not supported entity.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition