Definition at line 1887 of file Uri.cs.
1888 {
1892 if (@string.Length <= 512)
1893 {
1896 }
1897 else
1898 {
1900 }
1903 {
1906 {
1908 if (
InFact(Flags.AuthorityFound))
1909 {
1912 }
1913 }
1914 }
1917 {
1920 {
1922 {
1924 if (
NotAny(Flags.UserEscaped))
1925 {
1927 break;
1928 }
1929 InFact(Flags.E_UserNotCanonical);
1931 break;
1936 break;
1939 break;
1940 default:
1942 break;
1943 }
1944 }
1945 else
1946 {
1948 }
1950 {
1952 }
1953 }
1955 {
1957 if (
text.Length != 0)
1958 {
1963 {
1964 text = UriHelper.StripBidiControlCharacters(
text,
text);
1965 if (!DomainNameHelper.TryGetUnicodeEquivalent(
text,
ref dest2))
1966 {
1968 }
1969 }
1973 {
1977 }
1978 }
1979 }
1981 {
1989 }
1991 {
1994 {
1997 string result =
format.ToString();
1999 return result;
2000 }
2001 }
2003 {
2006 {
2008 }
2011 {
2013 {
2014 if (
NotAny(Flags.UserEscaped))
2015 {
2018 }
2019 }
2020 else
2021 {
2023 {
2027 };
2028 }
2029 }
2031 }
2035 {
2038 {
2040 }
2043 {
2045 {
2046 if (
NotAny(Flags.UserEscaped))
2047 {
2050 }
2051 }
2052 else
2053 {
2055 {
2059 };
2060 }
2061 }
2063 }
2066 return dest.ToString();
2067 }
void EnsureHostString(bool allowDnsOptimization)
unsafe void GetCanonicalPath(ref System.Text.ValueStringBuilder dest, UriFormat formatAs)
References System.Uri._info, System.Uri._string, System.Uri._syntax, System.UriParser.DefaultPort, System.destination, System.Runtime.Serialization.Dictionary, System.Uri.Offset.End, System.Uri.EnsureHostString(), System.UriHelper.EscapeString(), System.format, System.Uri.Offset.Fragment, System.Uri.GetCanonicalPath(), System.Uri.UriInfo.Host, System.Uri.Offset.Host, System.Uri.HostType, System.Uri.InFact(), System.Uri.NotAny(), System.Uri.UriInfo.Offset, System.Uri.Offset.PortValue, System.UriParser.SchemeName, System.Uri.UriInfo.ScopeId, System.start, System.UriHelper.StripBidiControlCharacters(), System.text, System.DomainNameHelper.TryGetUnicodeEquivalent(), System.UriHelper.UnescapeString(), and System.Uri.Offset.User.
Referenced by System.Uri.GetEscapedParts(), and System.Uri.GetUnescapedParts().