Definition at line 1646 of file Uri.cs.
1647 {
1649 {
1651 {
1652 if (
NotAny(Flags.ErrorOrParsingRecursion))
1653 {
1654 _flags |= Flags.ErrorOrParsingRecursion;
1656 _flags &= ~Flags.ErrorOrParsingRecursion;
1657 return;
1658 }
1659 }
1660 }
1663 if (
text.Length != 0)
1664 {
1665 if (
HostType == Flags.BasicHostType)
1666 {
1670 {
1672 }
1673 if ((check &
Check.DisplayCanonical) == 0 && (
NotAny(Flags.ImplicitFile) || (check &
Check.ReservedFound) != 0))
1674 {
1675 flags |= Flags.HostNotCanonical;
1676 }
1677 if (
InFact(Flags.ImplicitFile) && (check & (
Check.EscapedCanonical |
Check.ReservedFound)) != 0)
1678 {
1679 check &=
~Check.EscapedCanonical;
1680 }
1681 if ((check & (
Check.EscapedCanonical |
Check.BackslashInPath)) !=
Check.EscapedCanonical)
1682 {
1683 flags |= Flags.E_HostNotCanonical;
1684 if (
NotAny(Flags.UserEscaped))
1685 {
1687 }
1688 }
1689 }
1690 else if (
NotAny(Flags.CanonicalDnsHost))
1691 {
1693 {
1695 }
1696 else
1697 {
1698 for (
int i = 0;
i <
text.Length;
i++)
1699 {
1701 {
1703 break;
1704 }
1705 }
1706 }
1707 }
1708 }
1711 }
void InterlockedSetFlags(Flags flags)
unsafe void GetHostViaCustomSyntax()
static string CreateHostStringHelper(string str, int idx, int end, ref Flags flags, ref string scopeId)
unsafe Check CheckCanonical(char *str, ref int idx, int end, char delim)
References System.Uri._flags, System.Uri._info, System.Uri._string, System.Uri._syntax, System.Uri.CheckCanonical(), System.Uri.CreateHostStringHelper(), System.Runtime.Serialization.Dictionary, System.Uri.Offset.End, System.UriHelper.EscapeString(), System.Uri.GetHostViaCustomSyntax(), System.Uri.Offset.Host, System.Uri.HostType, System.Uri.InFact(), System.Uri.InterlockedSetFlags(), System.Uri.IsImplicitFile, System.UriParser.IsSimple, System.Uri.NotAny(), System.Uri.UriInfo.Offset, System.Uri.Offset.Path, System.Uri.UriInfo.ScopeId, System.str, System.text, and System.UriHelper.UnreservedReservedTable.
Referenced by System.Uri.EnsureHostString().