68 references to InFact
System.Private.Uri (68)
System\Uri.cs (56)
149Debug.Assert(InFact(Flags.MinimalUriInfoSet) == (_info is not null)); 163if (InFact(Flags.AllUriInfoSet)) 175if (!InFact(Flags.HasUnicode)) 395if (allowDnsOptimization && InFact(Flags.CanonicalDnsHost)) 604dontEscape = InFact(Flags.UserEscaped); 897return InFact(Flags.LoopbackHost); 1074UnescapeMode mode = (InFact(Flags.PathNotCanonical) && !IsImplicitFile) 1083if (InFact(Flags.ShouldBeCompressed)) 1123if (InFact(Flags.NotDefaultPort)) 1203if (hostType == Flags.IPv6HostType || (hostType == Flags.BasicHostType && InFact(Flags.HostNotCanonical | Flags.E_HostNotCanonical))) 1244else if (hostType == Flags.BasicHostType && InFact(Flags.HostNotCanonical | Flags.E_HostNotCanonical)) 1282return InFact(Flags.UserEscaped); 1812if (InFact(Flags.CanonicalDnsHost) && other.InFact(Flags.CanonicalDnsHost)) 2050if (!OperatingSystem.IsWindows() && InFact(Flags.UnixPath)) 2156else if (_syntax.InFact(UriSyntaxFlags.OptionalAuthority) && (InFact(Flags.AuthorityFound) || 2167if (InFact(Flags.HasUnicode)) 2185if (InFact(Flags.HasUnicode)) 2197if (InFact(Flags.DosPath)) 2229else if (!OperatingSystem.IsWindows() && hostTerminator == '/' && NotAny(Flags.ImplicitFile) && InFact(Flags.UncPath) && _syntax == UriParser.FileUri) 2509if (InFact(Flags.ImplicitFile) && (result & (Check.ReservedFound | Check.EscapedCanonical)) != 0) 2718if (InFact(Flags.SchemeNotCanonical)) 2726if (InFact(Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) 2821Debug.Assert(InFact(Flags.AllUriInfoSet)); 2830if (InFact(Flags.AuthorityFound)) 2839if ((parts & UriComponents.UserInfo) != 0 && InFact(Flags.HasUserInfo)) 2862InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape, 2905(InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape); 2945(InFact(Flags.NotDefaultPort) || ((parts & UriComponents.StrongPort) != 0 && _syntax.DefaultPort != UriParser.NoDefaultPort))) 2964if (InFact(Flags.AuthorityFound) && dest.Length != 0 && dest[0] == '/') 3003V1ToStringUnescape => (InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape) | UnescapeMode.V1ToStringFlag, 3005_ => InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape 3042V1ToStringUnescape => (InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape) | UnescapeMode.V1ToStringFlag, 3044_ => InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape 3070if (!InFact(Flags.HasUserInfo)) 3080if (!InFact(Flags.HasUserInfo)) 3083if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3098if (InFact(Flags.HasUserInfo)) 3131if (InFact(Flags.NotDefaultPort | Flags.PortNotCanonical)) 3143if (uriParts == UriComponents.Path && InFact(Flags.AuthorityFound) && 3184if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3194if (InFact(Flags.HasUserInfo)) 3258bool buildIriStringFromPath = InFact(Flags.HasUnicode); 4332if (InFact(Flags.FirstSlashAbsent)) 4347if (InFact(Flags.ShouldBeCompressed)) 4354if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical) 4369if (InFact(Flags.E_PathNotCanonical) && NotAny(Flags.UserEscaped)) 4392if (!OperatingSystem.IsWindows() && InFact(Flags.BackslashInPath) && _syntax.NotAny(UriSyntaxFlags.ConvertPathSlashes) && _syntax.InFact(UriSyntaxFlags.FileLikeUri) && !IsImplicitFile) 4410if (InFact(Flags.ShouldBeCompressed)) 4415if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical) 4441if (InFact(Flags.ShouldBeCompressed) && dest.Length - offset > 0) 4453if (formatAs == UriFormat.UriEscaped && NotAny(Flags.UserEscaped) && InFact(Flags.E_PathNotCanonical)) 4470if (formatAs != UriFormat.UriEscaped && InFact(Flags.PathNotCanonical)) 4477mode = (InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape) 4490mode = InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape; 5082return InFact(Flags.AuthorityFound);
System\UriExt.cs (12)
61|| (!OperatingSystem.IsWindows() && InFact(Flags.UnixPath)))) 73else if (uriKind == UriKind.Relative && InFact(Flags.DosPath)) 165if (err != ParsingError.None || InFact(Flags.ErrorOrParsingRecursion)) 503if (InFact(Flags.AuthorityFound)) 509if (InFact(Flags.UncPath | Flags.DosPath)) 521if (InFact(Flags.FirstSlashAbsent) && _info.Offset.Query > _info.Offset.Path) 527if (InFact(Flags.BackslashInPath)) 871if (baseUri.InFact(Flags.AuthorityFound)) 1054if (InFact(Flags.AllUriInfoSet)) 1061Debug.Assert(!InFact(Flags.HasUnicode) || otherUri.IsNotAbsoluteUri); 1067if (InFact(Flags.MinimalUriInfoSet)) 1072if (InFact(Flags.NotDefaultPort))