C# Class MongoDB.Bson.Serialization.BsonSerializationInfo

Represents the information needed to serialize a member.
ファイルを表示 Open project: egametang/Egametang Class Usage Examples

Public Methods

Method Description
BsonSerializationInfo ( string elementName, IBsonSerializer serializer, Type nominalType, IBsonSerializationOptions serializationOptions ) : System

Initializes a new instance of the BsonSerializationInfo class.

DeserializeValue ( BsonValue value ) : object

Deserializes the value.

SerializeValue ( object value ) : BsonValue

Serializes the value.

SerializeValues ( IEnumerable values ) : BsonArray

Serializes the values.

Private Methods

Method Description
Serialize ( BsonWriter bsonWriter, object value ) : void

Method Details

BsonSerializationInfo() public method

Initializes a new instance of the BsonSerializationInfo class.
public BsonSerializationInfo ( string elementName, IBsonSerializer serializer, Type nominalType, IBsonSerializationOptions serializationOptions ) : System
elementName string The element name.
serializer IBsonSerializer The serializer.
nominalType System.Type The nominal type.
serializationOptions IBsonSerializationOptions The serialization options.
return System

DeserializeValue() public method

Deserializes the value.
public DeserializeValue ( BsonValue value ) : object
value BsonValue The value.
return object

SerializeValue() public method

Serializes the value.
public SerializeValue ( object value ) : BsonValue
value object The value.
return BsonValue

SerializeValues() public method

Serializes the values.
public SerializeValues ( IEnumerable values ) : BsonArray
values IEnumerable The values.
return BsonArray