39 references to bytes
System.Private.CoreLib (39)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (11)
214
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
262
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
300
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
443
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
453
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
471
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
553
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
566
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
591
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
731
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
743
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (16)
179
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
198
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
260
argument: (s is null) ? ExceptionArgument.s : ExceptionArgument.
bytes
,
337
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
);
352
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
);
362
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
372
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
415
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
433
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
);
459
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
472
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
492
argument: ExceptionArgument.
bytes
,
505
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
553
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
);
570
argument: ExceptionArgument.
bytes
,
583
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (11)
261
argument: (s is null) ? ExceptionArgument.s : ExceptionArgument.
bytes
,
309
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
347
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
444
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
454
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
472
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
504
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
517
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
542
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
681
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
693
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
883
case ExceptionArgument.
bytes
: