Property TopLevelOnly

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson.Serialization.Conventions

Assembly

MongoDB.Bson.dll

TopLevelOnly

Gets a boolean indicating if this convention should be also applied only to the top level enum properties and not to others, collections of enums for example. True by default.

public bool TopLevelOnly { get; }

Property Value

bool