@@ -65,24 +65,6 @@ public static void IsNullOrWhiteSpace(string? text, [CallerArgumentExpression("t
6565 ThrowHelper . ThrowArgumentExceptionForIsNullOrWhiteSpace ( text , name ) ;
6666 }
6767
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-
8668 /// <summary>
8769 /// Asserts that the input <see cref="string"/> instance must not be <see langword="null"/> or whitespace.
8870 /// </summary>
@@ -101,24 +83,6 @@ public static void IsNotNullOrWhiteSpace([NotNull] string? text, [CallerArgument
10183 ThrowHelper . ThrowArgumentExceptionForIsNotNullOrWhiteSpace ( text , name ) ;
10284 }
10385
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-
12286 /// <summary>
12387 /// Asserts that the input <see cref="string"/> instance must be empty.
12488 /// </summary>
@@ -150,7 +114,7 @@ public static void IsNotEmpty(string text, [CallerArgumentExpression("text")] st
150114 return ;
151115 }
152116
153- ThrowHelper . ThrowArgumentExceptionForIsNotEmpty ( text , name ) ;
117+ ThrowHelper . ThrowArgumentExceptionForIsNotEmpty ( name ) ;
154118 }
155119
156120 /// <summary>
@@ -170,24 +134,6 @@ public static void IsWhiteSpace(string text, [CallerArgumentExpression("text")]
170134 ThrowHelper . ThrowArgumentExceptionForIsWhiteSpace ( text , name ) ;
171135 }
172136
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-
191137 /// <summary>
192138 /// Asserts that the input <see cref="string"/> instance must not be <see langword="null"/> or whitespace.
193139 /// </summary>
@@ -205,24 +151,6 @@ public static void IsNotWhiteSpace(string text, [CallerArgumentExpression("text"
205151 ThrowHelper . ThrowArgumentExceptionForIsNotWhiteSpace ( text , name ) ;
206152 }
207153
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-
226154 /// <summary>
227155 /// Asserts that the input <see cref="string"/> instance must have a size of a specified value.
228156 /// </summary>
0 commit comments