FileSerializerEx Class

The FileSerializer for the serialization that includes the Autodesk objects too.
Public Class FileSerializerEx 
Inherits FileSerializer
This language is not supported or no code example is available.
public class FileSerializerEx : FileSerializer
This language is not supported or no code example is available.
Name Description
Public constructor FileSerializerEx() Empty constructor used in conjunction with the WriteFile class that accepts the Serializer.Model as parameter.
Public constructor FileSerializerEx(contentType) Constructor used in conjunction with the ReadFile class.
Top
Name Description
Public property Content Gets or sets the contentType for deserialization purpose. During the serialization process, it is internally initialized with the FileHeader.Content. (inherited from FileSerializer).
Public property FileBody Gets the file content. (inherited from FileSerializer).
Public property FileHeader Gets the file header. (inherited from FileSerializer).
Internal protected (Protected Friend) property HeaderTag During the serialization it represents the custom tag, during the deserialization it represents the file header tag. (inherited from Serializer).
Internal protected (Protected Friend) property HeaderVersion During the serialization it represents the LastVersion, during the deserialization it represents the file header version. (inherited from Serializer).
Public property Log Gets the list of errors and warnings generated during the serialization process. (inherited from Serializer).
Public property Model The ProtoBuf.Meta.RuntimeTypeModel that contains the object types that must be serialized. (inherited from Serializer).
Top
Methods
 
Name Description
Protected method AddReferenceIdField(MetaType) (inherited from Serializer).
Public method Static AddToCache(ISurrogateWithReferenceId, object) For internal use only. Adds the specified key and value to the serializer cache for the current thread during the serialization process. (inherited from Serializer).
Public method Static AddToCache(object, ISurrogateWithReferenceId) For internal use only. Adds the specified key and value to the serializer cache for the current thread during the serialization process. (inherited from Serializer).
Internal protected (Protected Friend) method CompileModel() Compile protobuf model in place for better performance and freeze it. This method can be used when all types are known beforehand. (inherited from Serializer).
Public method Contains(Type) Checks if the type is contained in the serializer model. (inherited from Serializer).
Public method Deserialize(Stream) Deserializes the document. (inherited from FileSerializer).
Protected method DeserializeAllItemsWithLengthPrefix<T>(Stream, int) Reads a sequence of consecutive length-prefixed items from a stream, using length-prefixed data. (inherited from FileSerializer).
Protected method DeserializeBody(Stream, ProtoBuf.SerializationContext) Deserialize the file body. (inherited from FileSerializer).
Protected method DeserializeHeaderWithLengthPrefix(Stream) Deserialize the file header data. (inherited from FileSerializer).
Protected method DeserializeWithLengthPrefix(Stream, Type, out long, out bool, int) Applies a protocol-buffer stream to an existing instance (or null), using length-prefixed data. (inherited from FileSerializer).
Protected method DeserializeWithLengthPrefix<T>(Stream, out long, out bool, int) Applies a protocol-buffer stream to an existing instance (or null), using length-prefixed data. (inherited from FileSerializer).
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method FillHeaderModel() Initialize the protobuf model for the file header. (inherited from FileSerializer).
Protected method FillModel() Initialize the protobuf model for the Eyeshot proprietary file format.
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 Static GetCachedObject(ISurrogateWithReferenceId) For internal use only. Gets the object associated with the specified ISurrogateWithReferenceId. (inherited from Serializer).
Public method Static GetCachedObjectWithReferenceId(object) For internal use only. Gets the ISurrogateWithReferenceId associated with the specified object for the current thread. (inherited from Serializer).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType(string) Gets the Type from an assembly qualified name. (inherited from Serializer).
Protected method GetTypeForObject(string) Gets the type of an object starting from the assembly name.
Protected method InitializeModel(bool) (inherited from Serializer).
Public method Static IsValidVersion(int) Checks if a version is a valid Eyeshot proprietary file format version. (inherited from Serializer).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method ModelIsCompiled() Indicates whether the protobuf model is already compiled or not. (inherited from Serializer).
Public method Static ResetCache() For internal use only. Resets the cache for the current thread. (inherited from Serializer).
Protected method ResetModel() Resets the protobuf model. (inherited from Serializer).
Public method Static ResizeCache(int) Resizes the cache for object graph reference handling. (inherited from Serializer).
Protected method Serialize(Stream) Serializes the file to the stream. (inherited from FileSerializer).
Public method SerializeFile(FileHeader, FileBody, Stream) Serializes the file to stream. (inherited from FileSerializer).
Public method SerializeFile(Stream) Serializes the file to stream. (inherited from FileSerializer).
Protected method SerializeHeaderWithLengthPrefix(FileHeader, Stream) Serialize the file header data. (inherited from FileSerializer).
Protected method SerializeWithLengthPrefix(Stream, object, int) Writes a protocol-buffer representation of the given object to the supplied stream with a length-prefix. (inherited from FileSerializer).
Protected method SetProtobufModel(RuntimeTypeModel) Sets the protobuf model. (inherited from Serializer).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method WriteLog(string) Writes a message into the log. (inherited from Serializer).
Top
Fields
 
Name Description
Public field Static FirstVersion Gets the first supported Eyeshot proprietary file format version. (inherited from Serializer).
Public field Static LastVersion Gets the last supported Eyeshot proprietary file format version. (inherited from Serializer).
Top

.NET Framework

Supported in: 4.8

In this article

Definition