@@ -18,25 +18,21 @@ namespace MongoDB.Bson.Serialization
1818 internal class BsonSerializationDomain : IBsonSerializationDomainInternal , IDisposable
1919 {
2020 // private fields
21- private ReaderWriterLockSlim _configLock =
22- new ReaderWriterLockSlim ( LockRecursionPolicy . SupportsRecursion ) ;
21+ private ReaderWriterLockSlim _configLock = new ( LockRecursionPolicy . SupportsRecursion ) ;
2322
24- private Dictionary < Type , IIdGenerator > _idGenerators = new Dictionary < Type , IIdGenerator > ( ) ;
23+ private Dictionary < Type , IIdGenerator > _idGenerators = new ( ) ;
2524
26- private Dictionary < Type , IDiscriminatorConvention > _discriminatorConventions =
27- new Dictionary < Type , IDiscriminatorConvention > ( ) ;
25+ private Dictionary < Type , IDiscriminatorConvention > _discriminatorConventions = new ( ) ;
2826
29- private Dictionary < BsonValue , HashSet < Type > > _discriminators =
30- new Dictionary < BsonValue , HashSet < Type > > ( ) ;
27+ private Dictionary < BsonValue , HashSet < Type > > _discriminators = new ( ) ;
3128
32- private HashSet < Type > _discriminatedTypes = new HashSet < Type > ( ) ;
29+ private HashSet < Type > _discriminatedTypes = new ( ) ;
3330 private BsonSerializerRegistry _serializerRegistry ;
3431
3532 private TypeMappingSerializationProvider _typeMappingSerializationProvider ;
3633
3734 // ConcurrentDictionary<Type, object> is being used as a concurrent set of Type. The values will always be null.
38- private ConcurrentDictionary < Type , object > _typesWithRegisteredKnownTypes =
39- new ConcurrentDictionary < Type , object > ( ) ;
35+ private ConcurrentDictionary < Type , object > _typesWithRegisteredKnownTypes = new ( ) ;
4036
4137 private bool _useNullIdChecker = false ;
4238 private bool _useZeroIdChecker = false ;
0 commit comments