@@ -65,24 +65,6 @@ public static void IsNullOrWhiteSpace(string? text, [CallerArgumentExpression("t
65
65
ThrowHelper . ThrowArgumentExceptionForIsNullOrWhiteSpace ( text , name ) ;
66
66
}
67
67
68
- /// <summary>
69
- /// Asserts that the input <see cref="string"/> instance must be <see langword="null"/> or whitespace.
70
- /// </summary>
71
- /// <param name="text">The input <see cref="string"/> instance to test.</param>
72
- /// <param name="name">The name of the input parameter being tested.</param>
73
- /// <exception cref="ArgumentException">Thrown if <paramref name="text"/> is neither <see langword="null"/> nor whitespace.</exception>
74
- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
75
- [ Obsolete ( "Use " + nameof ( IsNullOrWhiteSpace ) ) ]
76
- public static void IsNullOrWhitespace ( string ? text , [ CallerArgumentExpression ( "text" ) ] string name = "" )
77
- {
78
- if ( string . IsNullOrWhiteSpace ( text ) )
79
- {
80
- return ;
81
- }
82
-
83
- ThrowHelper . ThrowArgumentExceptionForIsNullOrWhiteSpace ( text , name ) ;
84
- }
85
-
86
68
/// <summary>
87
69
/// Asserts that the input <see cref="string"/> instance must not be <see langword="null"/> or whitespace.
88
70
/// </summary>
@@ -101,24 +83,6 @@ public static void IsNotNullOrWhiteSpace([NotNull] string? text, [CallerArgument
101
83
ThrowHelper . ThrowArgumentExceptionForIsNotNullOrWhiteSpace ( text , name ) ;
102
84
}
103
85
104
- /// <summary>
105
- /// Asserts that the input <see cref="string"/> instance must not be <see langword="null"/> or whitespace.
106
- /// </summary>
107
- /// <param name="text">The input <see cref="string"/> instance to test.</param>
108
- /// <param name="name">The name of the input parameter being tested.</param>
109
- /// <exception cref="ArgumentException">Thrown if <paramref name="text"/> is <see langword="null"/> or whitespace.</exception>
110
- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
111
- [ Obsolete ( "Use " + nameof ( IsNotNullOrWhiteSpace ) ) ]
112
- public static void IsNotNullOrWhitespace ( [ NotNull ] string ? text , [ CallerArgumentExpression ( "text" ) ] string name = "" )
113
- {
114
- if ( ! string . IsNullOrWhiteSpace ( text ) )
115
- {
116
- return ;
117
- }
118
-
119
- ThrowHelper . ThrowArgumentExceptionForIsNotNullOrWhiteSpace ( text , name ) ;
120
- }
121
-
122
86
/// <summary>
123
87
/// Asserts that the input <see cref="string"/> instance must be empty.
124
88
/// </summary>
@@ -150,7 +114,7 @@ public static void IsNotEmpty(string text, [CallerArgumentExpression("text")] st
150
114
return ;
151
115
}
152
116
153
- ThrowHelper . ThrowArgumentExceptionForIsNotEmpty ( text , name ) ;
117
+ ThrowHelper . ThrowArgumentExceptionForIsNotEmpty ( name ) ;
154
118
}
155
119
156
120
/// <summary>
@@ -170,24 +134,6 @@ public static void IsWhiteSpace(string text, [CallerArgumentExpression("text")]
170
134
ThrowHelper . ThrowArgumentExceptionForIsWhiteSpace ( text , name ) ;
171
135
}
172
136
173
- /// <summary>
174
- /// Asserts that the input <see cref="string"/> instance must be whitespace.
175
- /// </summary>
176
- /// <param name="text">The input <see cref="string"/> instance to test.</param>
177
- /// <param name="name">The name of the input parameter being tested.</param>
178
- /// <exception cref="ArgumentException">Thrown if <paramref name="text"/> is neither <see langword="null"/> nor whitespace.</exception>
179
- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
180
- [ Obsolete ( "Use " + nameof ( IsWhiteSpace ) ) ]
181
- public static void IsWhitespace ( string text , [ CallerArgumentExpression ( "text" ) ] string name = "" )
182
- {
183
- if ( string . IsNullOrWhiteSpace ( text ) )
184
- {
185
- return ;
186
- }
187
-
188
- ThrowHelper . ThrowArgumentExceptionForIsWhiteSpace ( text , name ) ;
189
- }
190
-
191
137
/// <summary>
192
138
/// Asserts that the input <see cref="string"/> instance must not be <see langword="null"/> or whitespace.
193
139
/// </summary>
@@ -205,24 +151,6 @@ public static void IsNotWhiteSpace(string text, [CallerArgumentExpression("text"
205
151
ThrowHelper . ThrowArgumentExceptionForIsNotWhiteSpace ( text , name ) ;
206
152
}
207
153
208
- /// <summary>
209
- /// Asserts that the input <see cref="string"/> instance must not be <see langword="null"/> or whitespace.
210
- /// </summary>
211
- /// <param name="text">The input <see cref="string"/> instance to test.</param>
212
- /// <param name="name">The name of the input parameter being tested.</param>
213
- /// <exception cref="ArgumentException">Thrown if <paramref name="text"/> is <see langword="null"/> or whitespace.</exception>
214
- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
215
- [ Obsolete ( "Use " + nameof ( IsNotWhiteSpace ) ) ]
216
- public static void IsNotWhitespace ( string text , [ CallerArgumentExpression ( "text" ) ] string name = "" )
217
- {
218
- if ( ! string . IsNullOrWhiteSpace ( text ) )
219
- {
220
- return ;
221
- }
222
-
223
- ThrowHelper . ThrowArgumentExceptionForIsNotWhiteSpace ( text , name ) ;
224
- }
225
-
226
154
/// <summary>
227
155
/// Asserts that the input <see cref="string"/> instance must have a size of a specified value.
228
156
/// </summary>
0 commit comments