Class BsonRepresentationAttribute
Overrides the BSON numeric encoding for one generated member without changing its JSON form.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = false)]
public sealed class BsonRepresentationAttribute : Attribute
- Inheritance
-
BsonRepresentationAttribute
- Inherited Members
Constructors
BsonRepresentationAttribute(BsonRepresentation)
Overrides the BSON numeric encoding for one generated member without changing its JSON form.
public BsonRepresentationAttribute(BsonRepresentation representation)
Parameters
representationBsonRepresentation
Properties
Representation
public BsonRepresentation Representation { get; }