Skip to content

Commit d18a20a

Browse files
committed
#if net45
1 parent 9fbbe63 commit d18a20a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/FSharpPlus/Extensions/HashSet.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)