@@ -18,7 +18,6 @@ internal static partial class ThrowHelper
1818 /// </summary>
1919 /// <param name="name">The argument name.</param>
2020 [ DoesNotReturn ]
21- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
2221 public static void ThrowArgumentNullExceptionForNotNull ( string name )
2322 => ThrowArgumentNullException ( name , $ "Parameter \" { name } \" must be not null.") ;
2423
@@ -28,7 +27,6 @@ public static void ThrowArgumentNullExceptionForNotNull(string name)
2827 /// <param name="value">The value.</param>
2928 /// <param name="name">The argument name.</param>
3029 [ DoesNotReturn ]
31- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
3230 public static void ThrowArgumentExceptionForNotNullOrWhitespace ( string value , string name )
3331 {
3432 if ( value is null )
@@ -49,7 +47,6 @@ public static void ThrowArgumentExceptionForNotNullOrWhitespace(string value, st
4947 /// <param name="max">The maximum allowable value.</param>
5048 /// <param name="name">The argument name.</param>
5149 [ DoesNotReturn ]
52- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
5350 public static void ThrowArgumentOutOfRangeExceptionForMustBeLessThan < T > ( T value , T max , string name )
5451 => ThrowArgumentOutOfRangeException ( name , $ "Parameter \" { name } \" ({ typeof ( T ) } ) must be less than { max } , was { value } ") ;
5552
@@ -61,7 +58,6 @@ public static void ThrowArgumentOutOfRangeExceptionForMustBeLessThan<T>(T value,
6158 /// <param name="maximum">The maximum allowable value.</param>
6259 /// <param name="name">The argument name.</param>
6360 [ DoesNotReturn ]
64- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
6561 public static void ThrowArgumentOutOfRangeExceptionForMustBeLessThanOrEqualTo < T > ( T value , T maximum , string name )
6662 => ThrowArgumentOutOfRangeException ( name , $ "Parameter \" { name } \" ({ typeof ( T ) } ) must be less than or equal to { maximum } , was { value } ") ;
6763
@@ -73,7 +69,6 @@ public static void ThrowArgumentOutOfRangeExceptionForMustBeLessThanOrEqualTo<T>
7369 /// <param name="minimum">The minimum allowable value.</param>
7470 /// <param name="name">The argument name.</param>
7571 [ DoesNotReturn ]
76- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
7772 public static void ThrowArgumentOutOfRangeExceptionForMustBeGreaterThan < T > ( T value , T minimum , string name )
7873 => ThrowArgumentOutOfRangeException ( name , $ "Parameter \" { name } \" ({ typeof ( T ) } ) must be greater than { minimum } , was { value } ") ;
7974
@@ -85,7 +80,6 @@ public static void ThrowArgumentOutOfRangeExceptionForMustBeGreaterThan<T>(T val
8580 /// <param name="minimum">The minimum allowable value.</param>
8681 /// <param name="name">The argument name.</param>
8782 [ DoesNotReturn ]
88- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
8983 public static void ThrowArgumentOutOfRangeExceptionForMustBeGreaterThanOrEqualTo < T > ( T value , T minimum , string name )
9084 => ThrowArgumentOutOfRangeException ( name , $ "Parameter \" { name } \" ({ typeof ( T ) } ) must be greater than or equal to { minimum } , was { value } ") ;
9185
@@ -98,7 +92,6 @@ public static void ThrowArgumentOutOfRangeExceptionForMustBeGreaterThanOrEqualTo
9892 /// <param name="maximum">The maximum allowable value.</param>
9993 /// <param name="name">The argument name.</param>
10094 [ DoesNotReturn ]
101- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
10295 public static void ThrowArgumentOutOfRangeExceptionForMustBeBetweenOrEqualTo < T > ( T value , T minimum , T maximum , string name )
10396 => ThrowArgumentOutOfRangeException ( name , $ "Parameter \" { name } \" ({ typeof ( T ) } ) must be between or equal to { minimum } and { maximum } , was { value } ") ;
10497
@@ -108,7 +101,6 @@ public static void ThrowArgumentOutOfRangeExceptionForMustBeBetweenOrEqualTo<T>(
108101 /// <param name="minLength">The minimum allowable length.</param>
109102 /// <param name="parameterName">The paramere name.</param>
110103 [ DoesNotReturn ]
111- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
112104 public static void ThrowArgumentOutOfRangeExceptionForMustBeSizedAtLeast ( int minLength , string parameterName )
113105 => ThrowArgumentException ( $ "Spans must be at least of length { minLength } !", parameterName ) ;
114106
@@ -119,7 +111,6 @@ public static void ThrowArgumentOutOfRangeExceptionForMustBeSizedAtLeast(int min
119111 /// <param name="name">The argument name.</param>
120112 /// <exception cref="ArgumentException">Thrown with <paramref name="message"/> and <paramref name="name"/>.</exception>
121113 [ DoesNotReturn ]
122- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
123114 public static void ThrowArgumentException ( string message , string name )
124115 => throw new ArgumentException ( message , name ) ;
125116
@@ -130,7 +121,6 @@ public static void ThrowArgumentException(string message, string name)
130121 /// <param name="message">The message to include in the exception.</param>
131122 /// <exception cref="ArgumentNullException">Thrown with <paramref name="name"/> and <paramref name="message"/>.</exception>
132123 [ DoesNotReturn ]
133- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
134124 public static void ThrowArgumentNullException ( string name , string message )
135125 => throw new ArgumentNullException ( name , message ) ;
136126
@@ -141,7 +131,6 @@ public static void ThrowArgumentNullException(string name, string message)
141131 /// <param name="message">The message to include in the exception.</param>
142132 /// <exception cref="ArgumentOutOfRangeException">Thrown with <paramref name="name"/> and <paramref name="message"/>.</exception>
143133 [ DoesNotReturn ]
144- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
145134 public static void ThrowArgumentOutOfRangeException ( string name , string message )
146135 => throw new ArgumentOutOfRangeException ( name , message ) ;
147136}
0 commit comments