Skip to content

Commit 9cbe8d1

Browse files
DOCSP-46310 EnumRepresentationConvention constructor update (#448)
1 parent 2ee7961 commit 9cbe8d1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/whats-new.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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

5163
What's New in 3.1

0 commit comments

Comments
 (0)