2 implementations of CastFrom
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
1212
static byte IUtfChar<byte>.
CastFrom
(uint value) => (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
2084
static char IUtfChar<char>.
CastFrom
(uint value) => (char)value;
4 references to CastFrom
System.Private.CoreLib (4)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (2)
298
buffer[--index] = TChar.
CastFrom
(value + '0');
319
buffer[--index] = TChar.
CastFrom
(remainder + '0');
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (2)
1975
destination[cur--] = TChar.
CastFrom
(temp - value * 10);
1978
destination[0] = TChar.
CastFrom
('0' + value);