C# Class MongoDB.Bson.Serialization.BsonSerializationInfo

Represents the information needed to serialize a member.
Afficher le fichier Open project: egametang/Egametang Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Serialize ( BsonWriter bsonWriter, object value ) : void

Method Details

BsonSerializationInfo() public méthode

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.
Résultat System

DeserializeValue() public méthode

Deserializes the value.
public DeserializeValue ( BsonValue value ) : object
value BsonValue The value.
Résultat object

SerializeValue() public méthode

Serializes the value.
public SerializeValue ( object value ) : BsonValue
value object The value.
Résultat BsonValue

SerializeValues() public méthode

Serializes the values.
public SerializeValues ( IEnumerable values ) : BsonArray
values IEnumerable The values.
Résultat BsonArray