CSHARP-5905ClosedFixed

"System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance." when using EnumRepresentationConvention or ObjectSerializerAllowedTypesConvention

h4. Summary _When using either `EnumRepresentationConvention` or `ObjectSerializerAllowedTypesConvention`, if the type is recursive with a collection of the same type, initialization will fail with the following exception: "System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance."_ h4. Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

Affected Versions
Versions known to exhibit this issue
3.6.0
Fixed Versions
Versions that include the fix
3.7.1
Components
Server components related to this issue
BSON
Labels
Tags and classification
c#