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