@@ -18,25 +18,21 @@ namespace MongoDB.Bson.Serialization
18
18
internal class BsonSerializationDomain : IBsonSerializationDomainInternal , IDisposable
19
19
{
20
20
// private fields
21
- private ReaderWriterLockSlim _configLock =
22
- new ReaderWriterLockSlim ( LockRecursionPolicy . SupportsRecursion ) ;
21
+ private ReaderWriterLockSlim _configLock = new ( LockRecursionPolicy . SupportsRecursion ) ;
23
22
24
- private Dictionary < Type , IIdGenerator > _idGenerators = new Dictionary < Type , IIdGenerator > ( ) ;
23
+ private Dictionary < Type , IIdGenerator > _idGenerators = new ( ) ;
25
24
26
- private Dictionary < Type , IDiscriminatorConvention > _discriminatorConventions =
27
- new Dictionary < Type , IDiscriminatorConvention > ( ) ;
25
+ private Dictionary < Type , IDiscriminatorConvention > _discriminatorConventions = new ( ) ;
28
26
29
- private Dictionary < BsonValue , HashSet < Type > > _discriminators =
30
- new Dictionary < BsonValue , HashSet < Type > > ( ) ;
27
+ private Dictionary < BsonValue , HashSet < Type > > _discriminators = new ( ) ;
31
28
32
- private HashSet < Type > _discriminatedTypes = new HashSet < Type > ( ) ;
29
+ private HashSet < Type > _discriminatedTypes = new ( ) ;
33
30
private BsonSerializerRegistry _serializerRegistry ;
34
31
35
32
private TypeMappingSerializationProvider _typeMappingSerializationProvider ;
36
33
37
34
// 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 ( ) ;
40
36
41
37
private bool _useNullIdChecker = false ;
42
38
private bool _useZeroIdChecker = false ;
0 commit comments