We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01330fd commit 7bec37fCopy full SHA for 7bec37f
src/MongoDB.Bson/Serialization/Serializers/ExpandoObjectSerializer.cs
@@ -29,13 +29,14 @@ namespace MongoDB.Bson.Serialization.Serializers
29
public sealed class ExpandoObjectSerializer : DynamicDocumentBaseSerializer<ExpandoObject>
30
{
31
// private fields
32
- private IBsonSerializer<List<object>> _listSerializer;
+ private readonly IBsonSerializer<List<object>> _listSerializer;
33
34
/// <summary>
35
/// Initializes a new instance of the <see cref="ExpandoObjectSerializer"/> class.
36
/// </summary>
37
public ExpandoObjectSerializer()
38
39
+ _listSerializer = BsonSerializer.LookupSerializer<List<object>>();
40
}
41
42
0 commit comments