File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,21 +13,13 @@ namespace SixLabors;
1313internal static partial class ThrowHelper
1414#pragma warning restore RCS1043 // Remove 'partial' modifier from type with a single part.
1515{
16- /// <summary>
17- /// Throws an <see cref="ArgumentNullException"/> when <see cref="Guard.NotNull{TValue}"/> fails.
18- /// </summary>
19- /// <param name="name">The argument name.</param>
20- [ DoesNotReturn ]
21- public static void ThrowArgumentNullExceptionForNotNull ( string name )
22- => ThrowArgumentNullException ( name , $ "Parameter \" { name } \" must be not null.") ;
23-
2416 /// <summary>
2517 /// Throws an <see cref="ArgumentException"/> when <see cref="Guard.NotNullOrWhiteSpace"/> fails.
2618 /// </summary>
2719 /// <param name="value">The value.</param>
2820 /// <param name="name">The argument name.</param>
2921 [ DoesNotReturn ]
30- public static void ThrowArgumentExceptionForNotNullOrWhitespace ( string value , string name )
22+ public static void ThrowArgumentExceptionForNotNullOrWhitespace ( string ? value , string name )
3123 {
3224 if ( value is null )
3325 {
You can’t perform that action at this time.
0 commit comments