MongoDB.Bson.Serialization.Attributes.BsonRepresentationAttribute.BsonRepresentationAttribute C# (CSharp) Method

BsonRepresentationAttribute() public method

Initializes a new instance of the BsonRepresentationAttribute class.
public BsonRepresentationAttribute ( BsonType representation ) : System
representation BsonType The external representation.
return System
        public BsonRepresentationAttribute(BsonType representation)
        {
            _representation = representation;
        }
BsonRepresentationAttribute