Click or drag to resize

BsonSerializer Class

Class to call method for convert BsonDocument to/from byte[] - based on http://bsonspec.org/spec.html In v5 this class use new BufferRead/Writer to work with byte[] segments. This class are just a shortchut
Inheritance Hierarchy
SystemObject
  Internal.LiteDBBsonSerializer

Namespace: Internal.LiteDB
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class BsonSerializer

The BsonSerializer type exposes the following members.

Constructors
 NameDescription
Public methodBsonSerializerInitializes a new instance of the BsonSerializer class
Top
Methods
 NameDescription
Public methodStatic memberDeserialize Deserialize binary data into BsonDocument
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberSerialize Serialize BsonDocument into a binary array
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also