File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Serialization/Serializers Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework > netstandard2.1</TargetFramework >
4
+ <TargetFrameworks >net9.0; netstandard2.1</TargetFrameworks >
5
5
<GenerateDocumentationFile >true</GenerateDocumentationFile >
6
6
<Nullable >enable</Nullable >
7
7
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ open MongoDB.Bson.Serialization.Serializers
21
21
/// <summary>
22
22
/// Serializer for F# maps.
23
23
/// </summary>
24
- type FSharpMapSerializer < 'KeyType , 'ValueType when 'KeyType : comparison >() =
24
+ type FSharpMapSerializer < 'KeyType , 'ValueType when 'KeyType : comparison and 'KeyType: not null >() =
25
25
inherit SerializerBase< Map< 'KeyType, 'ValueType>>()
26
26
27
27
let serializer = DictionaryInterfaceImplementerSerializer< Dictionary< 'KeyType, 'ValueType>>()
You can’t perform that action at this time.
0 commit comments