2 implementations of CastFrom
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
1209static byte IUtfChar<byte>.CastFrom(byte value) => value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
2081static char IUtfChar<char>.CastFrom(byte value) => (char)value;
5 references to CastFrom
System.Private.CoreLib (5)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (3)
979vlb.Append(TChar.CastFrom(ch)); 1190vlb.Append(TChar.CastFrom(ch)); 1341vlb.Append(TChar.CastFrom(ch));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
1345*p++ = TChar.CastFrom((byte)flags); 1442*p = TChar.CastFrom((byte)flags);