39 references to bytes
System.Private.CoreLib (39)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (11)
215
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
263
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
301
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);
554
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
567
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
592
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
732
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
744
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (16)
180
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
199
argument: (chars is null) ? ExceptionArgument.chars : ExceptionArgument.
bytes
,
261
argument: (s is null) ? ExceptionArgument.s : ExceptionArgument.
bytes
,
338
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
);
353
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
);
363
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentNull_Array);
373
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
416
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
434
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
);
460
argument: (bytes is null) ? ExceptionArgument.
bytes
: ExceptionArgument.chars,
473
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
493
argument: ExceptionArgument.
bytes
,
506
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
554
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.
bytes
);
571
argument: ExceptionArgument.
bytes
,
584
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.
bytes
, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
883
case ExceptionArgument.
bytes
: