62 references to InFact
System.Private.Uri (62)
System\Uri.cs (52)
346
if (allowDnsOptimization &&
InFact
(Flags.CanonicalDnsHost))
555
dontEscape =
InFact
(Flags.UserEscaped);
850
return
InFact
(Flags.LoopbackHost);
1024
UnescapeMode mode = (
InFact
(Flags.PathNotCanonical) && !IsImplicitFile)
1033
if (
InFact
(Flags.ShouldBeCompressed))
1073
if (
InFact
(Flags.NotDefaultPort))
1153
if (hostType == Flags.IPv6HostType || (hostType == Flags.BasicHostType &&
InFact
(Flags.HostNotCanonical | Flags.E_HostNotCanonical)))
1194
else if (hostType == Flags.BasicHostType &&
InFact
(Flags.HostNotCanonical | Flags.E_HostNotCanonical))
1232
return
InFact
(Flags.UserEscaped);
1762
if (
InFact
(Flags.CanonicalDnsHost) && other.
InFact
(Flags.CanonicalDnsHost))
2003
if (!OperatingSystem.IsWindows() &&
InFact
(Flags.UnixPath))
2109
else if (_syntax.InFact(UriSyntaxFlags.OptionalAuthority) && (
InFact
(Flags.AuthorityFound) ||
2120
if (
InFact
(Flags.HasUnicode))
2138
if (
InFact
(Flags.HasUnicode))
2150
if (
InFact
(Flags.DosPath))
2182
else if (!OperatingSystem.IsWindows() && hostTerminator == '/' && NotAny(Flags.ImplicitFile) &&
InFact
(Flags.UncPath) && _syntax == UriParser.FileUri)
2462
if (
InFact
(Flags.ImplicitFile) && (result & (Check.ReservedFound | Check.EscapedCanonical)) != 0)
2669
if (
InFact
(Flags.SchemeNotCanonical))
2677
if (
InFact
(Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath))
2779
if (
InFact
(Flags.AuthorityFound))
2788
if ((parts & UriComponents.UserInfo) != 0 &&
InFact
(Flags.HasUserInfo))
2811
InFact
(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape,
2854
(
InFact
(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape);
2894
(
InFact
(Flags.NotDefaultPort) || ((parts & UriComponents.StrongPort) != 0 && _syntax.DefaultPort != UriParser.NoDefaultPort)))
2913
if (
InFact
(Flags.AuthorityFound) && dest.Length != 0 && dest[0] == '/')
2952
V1ToStringUnescape => (
InFact
(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape) | UnescapeMode.V1ToStringFlag,
2954
_ =>
InFact
(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape
2991
V1ToStringUnescape => (
InFact
(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape) | UnescapeMode.V1ToStringFlag,
2993
_ =>
InFact
(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape
3019
if (!
InFact
(Flags.HasUserInfo))
3029
if (!
InFact
(Flags.HasUserInfo))
3032
if (
InFact
(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort)
3047
if (
InFact
(Flags.HasUserInfo))
3080
if (
InFact
(Flags.NotDefaultPort | Flags.PortNotCanonical))
3092
if (uriParts == UriComponents.Path &&
InFact
(Flags.AuthorityFound) &&
3133
if (
InFact
(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort)
3143
if (
InFact
(Flags.HasUserInfo))
3207
bool buildIriStringFromPath =
InFact
(Flags.HasUnicode);
4296
if (
InFact
(Flags.FirstSlashAbsent))
4311
if (
InFact
(Flags.ShouldBeCompressed))
4318
if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) &&
InFact
(Flags.PathNotCanonical)
4333
if (
InFact
(Flags.E_PathNotCanonical) && NotAny(Flags.UserEscaped))
4356
if (!OperatingSystem.IsWindows() &&
InFact
(Flags.BackslashInPath) && _syntax.NotAny(UriSyntaxFlags.ConvertPathSlashes) && _syntax.InFact(UriSyntaxFlags.FileLikeUri) && !IsImplicitFile)
4374
if (
InFact
(Flags.ShouldBeCompressed))
4379
if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) &&
InFact
(Flags.PathNotCanonical)
4405
if (
InFact
(Flags.ShouldBeCompressed) && dest.Length - offset > 0)
4413
if (formatAs == UriFormat.UriEscaped && NotAny(Flags.UserEscaped) &&
InFact
(Flags.E_PathNotCanonical))
4430
if (formatAs != UriFormat.UriEscaped &&
InFact
(Flags.PathNotCanonical))
4437
mode = (
InFact
(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape)
4450
mode =
InFact
(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape;
5163
return
InFact
(Flags.AuthorityFound);
System\UriExt.cs (10)
61
|| (!OperatingSystem.IsWindows() &&
InFact
(Flags.UnixPath))))
73
else if (uriKind == UriKind.Relative &&
InFact
(Flags.DosPath))
165
if (err != ParsingError.None ||
InFact
(Flags.ErrorOrParsingRecursion))
507
if (
InFact
(Flags.AuthorityFound))
513
if (
InFact
(Flags.UncPath | Flags.DosPath))
525
if (
InFact
(Flags.FirstSlashAbsent) && _info.Offset.Query > _info.Offset.Path)
531
if (
InFact
(Flags.BackslashInPath))
875
if (baseUri.
InFact
(Flags.AuthorityFound))
1060
if (
InFact
(Flags.MinimalUriInfoSet))
1065
if (
InFact
(Flags.NotDefaultPort))