MongoDB.Bson.Serialization.Conventions.TypeRepresentationSerializationOptionsConvention.TypeRepresentationSerializationOptionsConvention C# (CSharp) Méthode

TypeRepresentationSerializationOptionsConvention() public méthode

Initializes a new instance of the TypeRepresentationSerializationOptionsConvention class.
public TypeRepresentationSerializationOptionsConvention ( Type type, BsonType representation ) : System
type System.Type The type of the member.
representation BsonType The BSON representation to use for this type.
Résultat System
        public TypeRepresentationSerializationOptionsConvention(Type type, BsonType representation)
        {
            _type = type;
            _representation = representation;
        }