@@ -206,7 +206,7 @@ internal static void ValidatePort(this int value, [CallerArgumentExpression(name
206206 /// </remarks>
207207 public static byte [ ] Take ( this byte [ ] value , int offset , int count )
208208 {
209- ThrowHelper . ThrowIfNull ( value ) ;
209+ ArgumentNullException . ThrowIfNull ( value ) ;
210210
211211 if ( count == 0 )
212212 {
@@ -238,7 +238,7 @@ public static byte[] Take(this byte[] value, int offset, int count)
238238 /// </remarks>
239239 public static byte [ ] Take ( this byte [ ] value , int count )
240240 {
241- ThrowHelper . ThrowIfNull ( value ) ;
241+ ArgumentNullException . ThrowIfNull ( value ) ;
242242
243243 if ( count == 0 )
244244 {
@@ -257,8 +257,8 @@ public static byte[] Take(this byte[] value, int count)
257257
258258 public static bool IsEqualTo ( this byte [ ] left , byte [ ] right )
259259 {
260- ThrowHelper . ThrowIfNull ( left ) ;
261- ThrowHelper . ThrowIfNull ( right ) ;
260+ ArgumentNullException . ThrowIfNull ( left ) ;
261+ ArgumentNullException . ThrowIfNull ( right ) ;
262262
263263 return left . AsSpan ( ) . SequenceEqual ( right ) ;
264264 }
@@ -272,7 +272,7 @@ public static bool IsEqualTo(this byte[] left, byte[] right)
272272 /// </returns>
273273 public static byte [ ] TrimLeadingZeros ( this byte [ ] value )
274274 {
275- ThrowHelper . ThrowIfNull ( value ) ;
275+ ArgumentNullException . ThrowIfNull ( value ) ;
276276
277277 for ( var i = 0 ; i < value . Length ; i ++ )
278278 {
0 commit comments