2 implementations of CastFrom
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
1209
static byte IUtfChar<byte>.
CastFrom
(byte value) => value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
2081
static 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)
979
vlb.Append(TChar.
CastFrom
(ch));
1190
vlb.Append(TChar.
CastFrom
(ch));
1341
vlb.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);