Interface IBSONSerializable
Denotes entities which can write/serialize their state directly into BSONDocument
Assembly: Azos.dll
Syntax
public interface IBSONSerializable
Methods
IsKnownTypeForBSONDeserialization(Type)
Return true to state that the supplied type is known by IBSONDeserializable implementation
and its type id should not be added to the document
Declaration
bool IsKnownTypeForBSONDeserialization(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
SerializeToBSON(BSONSerializer, BSONDocument, IBSONSerializable, ref Object)
Declaration
void SerializeToBSON(BSONSerializer serializer, BSONDocument doc, IBSONSerializable parent, ref object context)
Parameters
Extension Methods