C# Class MongoDB.Driver.Wrappers.BaseWrapper

Abstract base class for wrapper classes.
Inheritance: IBsonSerializable
Mostrar archivo Open project: CloudMetal/mongo-csharp-driver

Protected Methods

Method Description
BaseWrapper ( Type nominalType, object obj ) : System

Initializes a new instance of the BaseWrapper class.

BaseWrapper ( object obj ) : System

Initializes a new instance of the BaseWrapper class.

Private Methods

Method Description
Deserialize ( MongoDB.Bson.IO.BsonReader bsonReader, Type nominalType, IBsonSerializationOptions options ) : object
GetDocumentId ( object &id, Type &idNominalType, IIdGenerator &idGenerator ) : bool
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void
SetDocumentId ( object id ) : void

Method Details

BaseWrapper() protected method

Initializes a new instance of the BaseWrapper class.
protected BaseWrapper ( Type nominalType, object obj ) : System
nominalType System.Type The nominal type of the wrapped object.
obj object The wrapped object.
return System

BaseWrapper() protected method

Initializes a new instance of the BaseWrapper class.
protected BaseWrapper ( object obj ) : System
obj object The wrapped object.
return System