2 writes to _tagOrTags
Microsoft.Extensions.Caching.Hybrid (2)
Internal\TagSet.cs (2)
30
_tagOrTags
= tag;
42
_tagOrTags
= tags;
10 references to _tagOrTags
Microsoft.Extensions.Caching.Hybrid (10)
Internal\TagSet.cs (10)
45
public string GetSinglePrechecked() => (string)
_tagOrTags
!; // we expect this to fail if used on incorrect types
46
public Span<string> GetSpanPrechecked() => (string[])
_tagOrTags
!; // we expect this to fail if used on incorrect types
56
public override string ToString() =>
_tagOrTags
switch
63
public bool IsEmpty =>
_tagOrTags
is null;
65
public int Count =>
_tagOrTags
switch
73
internal bool IsArray =>
_tagOrTags
is string[];
76
public string this[int index] =>
_tagOrTags
switch
85
switch (
_tagOrTags
)
179
switch (
_tagOrTags
)
203
switch (
_tagOrTags
)