2 implementations of CastFrom
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
1194static byte IUtfChar<byte>.CastFrom(uint value) => (byte)value;
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1986static char IUtfChar<char>.CastFrom(uint value) => (char)value;
5 references to CastFrom
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
259*p++ = TChar.CastFrom('0' + hours);
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (4)
1612*cur = TChar.CastFrom(temp - (value * 10)); 1617*cur = TChar.CastFrom('0' + value); 1645*(--bufferEnd) = TChar.CastFrom(value + '0'); 1667*(--bufferEnd) = TChar.CastFrom(remainder + '0');