35 references to CastFrom
System.Runtime.Numerics (35)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (19)
552
vlb.Append(TChar.
CastFrom
(*cur != 0 ? (char)(*cur++) : '0'));
585
vlb.Append(TChar.
CastFrom
(ch));
672
vlb.Append(TChar.
CastFrom
(ch));
692
vlb.Append(TChar.
CastFrom
(ch));
747
vlb.Append(TChar.
CastFrom
(ch));
806
*(p--) = TChar.
CastFrom
((i < digStart) ? (char)dig[i] : '0');
836
vlb.Append(TChar.
CastFrom
(*dig != 0 ? (char)(*dig++) : '0'));
843
vlb.Append(TChar.
CastFrom
('0'));
854
vlb.Append(TChar.
CastFrom
('0'));
862
vlb.Append(TChar.
CastFrom
((*dig != 0) ? (char)(*dig++) : '0'));
877
vlb.Append(TChar.
CastFrom
(ch));
913
vlb.Append(TChar.
CastFrom
(ch));
925
vlb.Append(TChar.
CastFrom
((*dig != 0) ? (char)(*dig++) : '0'));
934
vlb.Append(TChar.
CastFrom
((*dig != 0) ? (char)(*dig++) : '0'));
945
vlb.Append(TChar.
CastFrom
(expChar));
988
vlb.Append(TChar.
CastFrom
((*dig != 0) ? (char)(*dig++) : '0'));
994
vlb.Append(TChar.
CastFrom
('0'));
1003
vlb.Append(TChar.
CastFrom
('0'));
1044
vlb.Append(TChar.
CastFrom
(ch));
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (1)
314
var nullsToConsume = remainder.IndexOfAnyExcept(TChar.
CastFrom
('\0'));
System\Number.BigInteger.cs (4)
648
chars[charsPos++] = TChar.
CastFrom
(hexValues[b >> 4]);
649
chars[charsPos++] = TChar.
CastFrom
(hexValues[b & 0xF]);
658
TChar.
CastFrom
(value._sign >= 0 ? '0' : (format == 'x') ? 'f' : 'F'),
746
sb.Append(TChar.
CastFrom
(value._sign >= 0 ? '0' : '1'), digits - charsForBits);
System\Numerics\Complex.cs (4)
902
destination[0] = TChar.
CastFrom
('<');
915
destination[0] = TChar.
CastFrom
(';');
916
destination[1] = TChar.
CastFrom
(' ');
917
destination[2 + imaginaryChars] = TChar.
CastFrom
('>');
System\Numerics\Complex.Generic.cs (7)
1479
int openBracket = text.IndexOf(TChar.
CastFrom
('<'));
1480
int semicolon = text.IndexOf(TChar.
CastFrom
(';'));
1481
int closeBracket = text.IndexOf(TChar.
CastFrom
('>'));
1640
destination[0] = TChar.
CastFrom
('<');
1653
destination[0] = TChar.
CastFrom
(';');
1654
destination[1] = TChar.
CastFrom
(' ');
1655
destination[2 + imaginaryChars] = TChar.
CastFrom
('>');