File tree Expand file tree Collapse file tree
src/FSharpPlus/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ module HashSet =
6666 /// <returns ><c >true</c > if the set contains <c >value</c >; otherwise, <c >false</c >.</returns >
6767 [<CompiledName( " Contains" ) >]
6868 let contains ( value : 'T ) ( source : HashSet < 'T >) : bool =
69+ #if ! NET45
6970 raiseIfNull ( nameof source) source
71+ #endif
7072 source.Contains value
7173
7274 /// <summary >Determines whether the first set is a subset of the second set.</summary >
@@ -75,6 +77,8 @@ module HashSet =
7577 /// <returns ><c >true</c > if <c >source1</c > is a subset of <c >source2</c >; otherwise, <c >false</c >.</returns >
7678 [<CompiledName( " IsSubset" ) >]
7779 let isSubset ( source1 : HashSet < 'T >) ( source2 : HashSet < 'T >) : bool =
80+ #if ! NET45
7881 raiseIfNull ( nameof source1) source1
7982 raiseIfNull ( nameof source2) source2
83+ #endif
8084 source1.IsSubsetOf source2
You can’t perform that action at this time.
0 commit comments