Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
this[TKey key]
IEnumerable
<TElement>
System.Linq.Parallel.Lookup
< TKey, TElement >.
this
[TKey
key
]
get
Implements
System.Linq.ILookup< TKey, TElement >
.
Definition at line
27
of file
Lookup.cs
.
28
{
29
get
30
{
31
if
(
_comparer
.
Equals
(
key
,
default
(TKey)))
32
{
33
if
(
_defaultKeyGrouping
!=
null
)
34
{
35
return
_defaultKeyGrouping
;
36
}
37
return
Enumerable
.Empty<TElement>();
38
}
39
if
(
_dict
.
TryGetValue
(
key
,
out
var
value
))
40
{
41
return
value
;
42
}
43
return
Enumerable
.Empty<TElement>();
44
}
45
}
System.Collections.Generic.Dictionary.TryGetValue
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Definition
Dictionary.cs:1419
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Linq.Parallel.Lookup._defaultKeyGrouping
IGrouping< TKey, TElement > _defaultKeyGrouping
Definition
Lookup.cs:12
System.Linq.Parallel.Lookup._dict
readonly IDictionary< TKey, IGrouping< TKey, TElement > > _dict
Definition
Lookup.cs:8
System.Linq.Parallel.Lookup._comparer
readonly IEqualityComparer< TKey > _comparer
Definition
Lookup.cs:10
System.Collections.IEqualityComparer.Equals
new bool Equals(object? x, object? y)
System.Runtime.Serialization.CollectionKind.Enumerable
@ Enumerable
System.ExceptionArgument.value
@ value
System.ExceptionArgument.key
@ key
System
Linq
Parallel
Lookup
Generated by
1.10.0