@@ -8,7 +8,7 @@ internal static TComparable LessThan<TComparable>([NotNull] TComparable? value,
88 where TComparable : IComparable < TComparable >
99 {
1010 ComparableRange < TComparable > range = ComparableRangeFactory . WithMaxExclusiveOnly (
11- SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( nameof ( other ) ) ) ) ;
11+ SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( ) ) ) ;
1212 return CheckBoundaries ( value , range , paramName , null ) ;
1313 }
1414
@@ -18,9 +18,9 @@ internal static TComparable LessThan<TComparable>([NotNull] TComparable? value,
1818 [ NotNull ] string customMessage ) where TComparable : IComparable < TComparable >
1919 {
2020 ComparableRange < TComparable > range = ComparableRangeFactory . WithMaxExclusiveOnly (
21- SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( nameof ( other ) ) ) ) ;
21+ SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( ) ) ) ;
2222
23- return CheckBoundaries ( value , range , paramName , customMessage . ValueOrThrowIfNull ( nameof ( customMessage ) ) ) ;
23+ return CheckBoundaries ( value , range , paramName , customMessage . ValueOrThrowIfNull ( ) ) ;
2424 }
2525
2626 [ return : NotNull ]
@@ -29,7 +29,7 @@ internal static TComparable LessThanOrEqualTo<TComparable>([NotNull] TComparable
2929 where TComparable : IComparable < TComparable >
3030 {
3131 ComparableRange < TComparable > range = ComparableRangeFactory . WithMaxInclusiveOnly (
32- SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( nameof ( other ) ) ) ) ;
32+ SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( ) ) ) ;
3333
3434 return CheckBoundaries ( value , range , paramName , null ) ;
3535 }
@@ -41,9 +41,9 @@ internal static TComparable LessThanOrEqualTo<TComparable>([NotNull] TComparable
4141 where TComparable : IComparable < TComparable >
4242 {
4343 ComparableRange < TComparable > range = ComparableRangeFactory . WithMaxInclusiveOnly (
44- SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( nameof ( other ) ) ) ) ;
44+ SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( ) ) ) ;
4545
46- return CheckBoundaries ( value , range , paramName , customMessage . ValueOrThrowIfNull ( nameof ( customMessage ) ) ) ;
46+ return CheckBoundaries ( value , range , paramName , customMessage . ValueOrThrowIfNull ( ) ) ;
4747 }
4848
4949 [ return : NotNull ]
@@ -52,7 +52,7 @@ internal static TComparable GreaterThan<TComparable>([NotNull] TComparable? valu
5252 where TComparable : IComparable < TComparable >
5353 {
5454 ComparableRange < TComparable > range = ComparableRangeFactory . WithMinExclusiveOnly (
55- SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( nameof ( other ) ) ) ) ;
55+ SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( ) ) ) ;
5656
5757 return CheckBoundaries ( value , range , paramName , null ) ;
5858 }
@@ -63,9 +63,9 @@ internal static TComparable GreaterThan<TComparable>([NotNull] TComparable? valu
6363 [ NotNull ] string customMessage ) where TComparable : IComparable < TComparable >
6464 {
6565 ComparableRange < TComparable > range = ComparableRangeFactory . WithMinExclusiveOnly (
66- SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( nameof ( other ) ) ) ) ;
66+ SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( ) ) ) ;
6767
68- return CheckBoundaries ( value , range , paramName , customMessage . ValueOrThrowIfNull ( nameof ( customMessage ) ) ) ;
68+ return CheckBoundaries ( value , range , paramName , customMessage . ValueOrThrowIfNull ( ) ) ;
6969 }
7070
7171 [ return : NotNull ]
@@ -74,7 +74,7 @@ internal static TComparable GreaterThanOrEqualTo<TComparable>([NotNull] TCompara
7474 where TComparable : IComparable < TComparable >
7575 {
7676 ComparableRange < TComparable > range = ComparableRangeFactory . WithMinInclusiveOnly (
77- SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( nameof ( other ) ) ) ) ;
77+ SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( ) ) ) ;
7878
7979 return CheckBoundaries ( value , range , paramName , null ) ;
8080 }
@@ -85,9 +85,9 @@ internal static TComparable GreaterThanOrEqualTo<TComparable>([NotNull] TCompara
8585 [ NotNull ] string customMessage ) where TComparable : IComparable < TComparable >
8686 {
8787 ComparableRange < TComparable > range = ComparableRangeFactory . WithMinInclusiveOnly (
88- SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( nameof ( other ) ) ) ) ;
88+ SimpleOption . SomeNotNull ( other . ValueOrThrowIfNull ( ) ) ) ;
8989
90- return CheckBoundaries ( value , range , paramName , customMessage . ValueOrThrowIfNull ( nameof ( customMessage ) ) ) ;
90+ return CheckBoundaries ( value , range , paramName , customMessage . ValueOrThrowIfNull ( ) ) ;
9191 }
9292
9393 [ return : NotNull ]
@@ -119,13 +119,13 @@ internal static TComparable Between<TComparable>(
119119 [ NotNull ] string customMessage ) where TComparable : IComparable < TComparable >
120120 {
121121 ComparableRange < TComparable > range = new (
122- SimpleOption . SomeNotNull ( fromInclusive . ValueOrThrowIfNull ( nameof ( fromInclusive ) ) ) ,
123- SimpleOption . SomeNotNull ( toInclusive . ValueOrThrowIfNull ( nameof ( toInclusive ) ) ) ) ;
122+ SimpleOption . SomeNotNull ( fromInclusive . ValueOrThrowIfNull ( ) ) ,
123+ SimpleOption . SomeNotNull ( toInclusive . ValueOrThrowIfNull ( ) ) ) ;
124124
125125 return range . Contains (
126- value . ValueOrThrowIfNull ( nameof ( value ) ) ,
127- paramName . ValueOrThrowIfNull ( nameof ( customMessage ) ) ,
128- customMessage . ValueOrThrowIfNull ( nameof ( customMessage ) ) ) ;
126+ value . ValueOrThrowIfNull ( ) ,
127+ paramName . ValueOrThrowIfNull ( ) ,
128+ customMessage . ValueOrThrowIfNull ( ) ) ;
129129
130130 }
131131
@@ -136,7 +136,7 @@ private static TComparable CheckBoundaries<TComparable>(
136136 [ NotNull ] string paramName ,
137137 string ? customMessage ) where TComparable : IComparable < TComparable >
138138 => range . Contains (
139- value . ValueOrThrowIfNull ( nameof ( value ) ) ,
140- paramName . ValueOrThrowIfNull ( nameof ( paramName ) ) ,
139+ value . ValueOrThrowIfNull ( ) ,
140+ paramName . ValueOrThrowIfNull ( ) ,
141141 customMessage ) ;
142142}
0 commit comments