C# 클래스 MongoDB.Bson.BsonTypeMapper

A static class that maps between .NET objects and BsonValues.
파일 보기 프로젝트 열기: Qiredev/mongo-csharp-driver 1 사용 예제들

공개 메소드들

메소드 설명
MapToBsonValue ( object value ) : BsonValue

Maps an object to a BsonValue.

MapToBsonValue ( object value, BsonType bsonType ) : BsonValue

Maps an object to a specific BsonValue type.

RegisterCustomTypeMapper ( Type type, ICustomBsonTypeMapper customTypeMapper ) : void

Registers a custom type mapper.

TryMapToBsonValue ( object value, BsonValue &bsonValue ) : bool

Tries to map an object to a BsonValue.

비공개 메소드들

메소드 설명
Convert ( object value, Conversion conversion ) : BsonValue

메소드 상세

MapToBsonValue() 공개 정적인 메소드

Maps an object to a BsonValue.
public static MapToBsonValue ( object value ) : BsonValue
value object An object.
리턴 BsonValue

MapToBsonValue() 공개 정적인 메소드

Maps an object to a specific BsonValue type.
public static MapToBsonValue ( object value, BsonType bsonType ) : BsonValue
value object An object.
bsonType BsonType The BsonType to map to.
리턴 BsonValue

RegisterCustomTypeMapper() 공개 정적인 메소드

Registers a custom type mapper.
public static RegisterCustomTypeMapper ( Type type, ICustomBsonTypeMapper customTypeMapper ) : void
type System.Type The type.
customTypeMapper ICustomBsonTypeMapper A custom type mapper.
리턴 void

TryMapToBsonValue() 공개 정적인 메소드

Tries to map an object to a BsonValue.
public static TryMapToBsonValue ( object value, BsonValue &bsonValue ) : bool
value object An object.
bsonValue BsonValue The BsonValue.
리턴 bool