9 references to ToUShort
System.Net.Primitives (9)
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (5)
46
for (; (start < end) && (ch =
ToUShort
(str[start])) != '.' && ch != ':'; ++start)
139
int ch =
ToUShort
(name[start]);
230
ch =
ToUShort
(name[current]);
244
ch =
ToUShort
(name[current]);
263
ch =
ToUShort
(name[current]);
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (4)
137
int currentCh = IPv4AddressHelper.
ToUShort
(name[i]);
198
int ch = IPv4AddressHelper.
ToUShort
(name[i]);
211
if (!char.IsAsciiDigit((char)IPv4AddressHelper.
ToUShort
(name[i])))
327
currentCh = IPv4AddressHelper.
ToUShort
(address[i]);