Table of Contents

Class BsonRepresentationAttribute

Namespace
Shard.Codecs
Assembly
Shard.Codecs.dll

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

representation BsonRepresentation

Properties

Representation

public BsonRepresentation Representation { get; }

Property Value

BsonRepresentation