Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateForJoin()

static Lookup< TKey, TElement > System.Linq.Lookup< TKey, TElement >.CreateForJoin ( IEnumerable< TElement > source,
Func< TElement, TKey > keySelector,
IEqualityComparer< TKey > comparer )
inlinestaticpackage

Definition at line 108 of file Lookup.cs.

109 {
111 foreach (TElement item in source)
112 {
113 TKey val = keySelector(item);
114 if (val != null)
115 {
116 lookup.GetGrouping(val, create: true).Add(item);
117 }
118 }
119 return lookup;
120 }

References System.Add, System.comparer, System.item, System.Linq.keySelector, and System.Linq.source.