File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,18 @@ The 3.2 driver release includes the following new features:
4646 deserialized by the object serializer. To learn more about conventions,
4747 see the :ref:`csharp-conventions` guide.
4848
49+ - Adds a new constructor for the ``EnumRepresentationConvention`` class that
50+ allows you use the ``topLevelOnly`` parameter to specify whether the
51+ convention applies to only enum properties or to all properties that include
52+ collections of enums.
53+
54+ You can instantiate the ``EnumRepresentationConvention`` class by using the new
55+ constructor as shown in the following example:
56+
57+ .. code-block:: csharp
58+
59+ EnumRepresentationConvention(BsonType representation, bool topLevelOnly);
60+
4961.. _csharp-version-3.1:
5062
5163What's New in 3.1
You can’t perform that action at this time.
0 commit comments