50 writes to _flags
System.Private.Uri (50)
System\Uri.cs (33)
141
_flags
|= Flags.Debug_LeftConstructor;
255
Interlocked.Or(ref
_flags
, flags);
263
_flags
|= flags;
578
_flags
= Flags.Zero;
624
_flags
= Flags.Zero;
1988
_flags
|= Flags.ErrorOrParsingRecursion;
2013
_flags
&= ~(Flags.IndexMask | Flags.UserDrivenParsing);
2033
_flags
|= Flags.BasicHostType;
2034
_flags
|= (Flags)idx;
2063
_flags
|= Flags.AuthorityFound;
2078
_flags
|= Flags.DosPath;
2083
_flags
|= Flags.AuthorityFound;
2102
_flags
|= Flags.UncPath;
2108
_flags
|= Flags.UnixPath | Flags.AuthorityFound;
2129
_flags
|= Flags.AuthorityFound;
2140
_flags
|= Flags.AuthorityFound;
2153
_flags
|= ((Flags)idx | Flags.UnknownHostType);
2171
_flags
|= ((Flags)idx | Flags.UnknownHostType);
2180
_flags
|= (((_flags & Flags.AuthorityFound) != 0) ? Flags.BasicHostType : Flags.UnknownHostType);
2181
_flags
|= (Flags)idx;
2196
idx = CheckAuthorityHelper(pUriString, idx, length, ref err, ref
_flags
, _syntax, ref newHost);
2223
_flags
|= (Flags)idx;
2432
Flags oldValue = Interlocked.CompareExchange(ref
_flags
, (current & ~Flags.IndexMask) | cF, current);
2455
_flags
|= Flags.ErrorOrParsingRecursion;
2458
_flags
&= ~Flags.ErrorOrParsingRecursion;
2631
_flags
= (_flags & ~Flags.HostTypeMask) | Flags.BasicHostType;
2641
_flags
|= (Flags.HostNotCanonical | Flags.E_HostNotCanonical);
2645
_flags
= (_flags & ~Flags.HostTypeMask) | (flags & Flags.HostTypeMask);
2656
_flags
&= ~Flags.NotDefaultPort;
2657
_flags
|= (Flags.PortNotCanonical | Flags.E_PortNotCanonical);
2671
_flags
&= ~Flags.NotDefaultPort;
2673
_flags
|= Flags.NotDefaultPort;
2675
_flags
|= (Flags.PortNotCanonical | Flags.E_PortNotCanonical);
System\UriExt.cs (15)
34
_flags
|= Flags.UserEscaped;
37
_flags
|= Flags.DisablePathAndQueryCanonicalization;
39
ParsingError err = ParseScheme(_string, ref
_flags
, ref _syntax!);
64
_flags
&= Flags.UserEscaped; // the only flag that makes sense for a relative uri
76
_flags
&= Flags.UserEscaped; // the only flag that makes sense for a relative uri
95
_flags
|= Flags.HasUnicode;
112
_flags
&= Flags.UserEscaped; // the only flag that makes sense for a relative uri
147
_flags
|= Flags.UserDrivenParsing;
160
_flags
&= Flags.UserEscaped; // the only flag that makes sense for a relative uri
169
_flags
= Flags.UserDrivenParsing | (_flags & Flags.UserEscaped);
201
_flags
&= (Flags.UserEscaped | Flags.HasUnicode); // the only flags that makes sense for a relative uri
726
_flags
= flags;
1033
_flags
= otherUri._flags;
1050
_flags
&= ~(Flags.MinimalUriInfoSet | Flags.AllUriInfoSet | Flags.IndexMask);
1067
_flags
|= (Flags)portIndex; // Port or path
System\UriScheme.cs (1)
80
Uri.Flags previous = Interlocked.Or(ref uri.
_flags
, Uri.Flags.CustomParser_ParseMinimalAlreadyCalled);
System\UriSyntax.cs (1)
272
Interlocked.Or(ref thisUri.
_flags
, Uri.Flags.CustomParser_ParseMinimalAlreadyCalled);
49 references to _flags
System.Private.Uri (49)
System\Uri.cs (41)
196
Debug.Assert((
_flags
& Flags.Debug_LeftConstructor) == 0);
270
get { return (
_flags
& Flags.ImplicitFile) != 0; }
275
get { return (
_flags
& (Flags.UncPath | Flags.DosPath)) != 0; }
280
get { return (
_flags
& Flags.DosPath) != 0; }
285
get { return (
_flags
& Flags.UncPath) != 0; }
290
get { return (
_flags
& Flags.UnixPath) != 0; }
295
get { return
_flags
& Flags.HostTypeMask; }
321
internal bool DisablePathAndQueryCanonicalization => (
_flags
& Flags.DisablePathAndQueryCanonicalization) != 0;
327
return (
_flags
& Flags.UserDrivenParsing) != 0;
348
return (
_flags
& flags) == 0;
353
return (
_flags
& flags) != 0;
369
Flags cF =
_flags
;
375
Debug.Assert(_info != null && (
_flags
& Flags.MinimalUriInfoSet) != 0);
381
if ((
_flags
& Flags.AllUriInfoSet) == 0)
1645
ushort nonCanonical = (ushort)((ushort)
_flags
& (ushort)Flags.CannotDisplayCanonical);
1646
if (((
_flags
& (Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) != 0) ||
1980
Debug.Assert((
_flags
& Flags.CustomParser_ParseMinimalAlreadyCalled) != 0);
2009
int idx = (int)(
_flags
& Flags.IndexMask);
2116
if ((
_flags
& (Flags.UncPath | Flags.DosPath | Flags.UnixPath)) != 0)
2180
_flags |= (((
_flags
& Flags.AuthorityFound) != 0) ? Flags.BasicHostType : Flags.UnknownHostType);
2429
Flags current =
_flags
;
2464
Flags flags =
_flags
;
2614
Flags flags =
_flags
& ~Flags.HostTypeMask;
2631
_flags = (
_flags
& ~Flags.HostTypeMask) | Flags.BasicHostType;
2645
_flags = (
_flags
& ~Flags.HostTypeMask) | (flags & Flags.HostTypeMask);
2693
Debug.Assert(_info != null && (
_flags
& Flags.MinimalUriInfoSet) != 0);
2698
ushort nonCanonical = unchecked((ushort)(((ushort)
_flags
& ((ushort)Flags.CannotDisplayCanonical << 7)) >> 6));
2732
Debug.Assert(_info != null && (
_flags
& Flags.MinimalUriInfoSet) != 0);
2737
ushort nonCanonical = unchecked((ushort)((ushort)
_flags
& (ushort)Flags.CannotDisplayCanonical));
2742
if ((
_flags
& (Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) != 0)
3249
if (((
_flags
& Flags.AuthorityFound) != 0) && (idx + i + 3 >= length || str[idx + i + 1] != '/' ||
3258
if ((
_flags
& Flags.HasUserInfo) != 0)
3421
if (((
_flags
& Flags.AuthorityFound) != 0) && ((syntaxFlags & UriSyntaxFlags.PathIsRooted) != 0)
3431
if (IsDosPath || (((
_flags
& Flags.AuthorityFound) != 0) &&
3469
if (((
_flags
& Flags.ImplicitFile) == 0) || ((
_flags
& Flags.UserEscaped) != 0) ||
3478
if (((
_flags
& Flags.ImplicitFile) != 0) && (result & (Check.ReservedFound | Check.EscapedCanonical)) != 0)
3786
Debug.Assert((
_flags
& Flags.Debug_LeftConstructor) == 0 || (!_syntax.IsSimple && Monitor.IsEntered(_info)));
3796
Debug.Assert((
_flags
& Flags.HasUserInfo) == 0 && (
_flags
& Flags.HostTypeMask) == 0);
4249
if ((
_flags
& Flags.HasUnicode) != 0)
System\UriExt.cs (8)
31
Debug.Assert(_originalUnicodeString is null && _info is null && _syntax is null &&
_flags
== Flags.Zero);
169
_flags = Flags.UserDrivenParsing | (
_flags
& Flags.UserEscaped);
468
Flags nonCanonical = (
_flags
& (Flags.E_CannotDisplayCanonical | Flags.IriCanonical));
540
if ((
_flags
& Flags.CanonicalDnsHost) == 0 && HostType != Flags.IPv6HostType)
554
if ((
_flags
& (Flags.SchemeNotCanonical | Flags.AuthorityFound))
934
if (((
_flags
& Flags.NotDefaultPort) != 0) || (uriComponents == UriComponents.StrongPort
951
|| ((
_flags
& (Flags.HostNotCanonical | Flags.E_HostNotCanonical)) == 0)))
1033
_flags = otherUri.
_flags
;