[Extension()] public static ILookup<TKey,T> ToMultiKeyLookup<T,TKey>( IEnumerable<T> seq, Func<T,IEnumerable<TKey>> func )
Parameters
- seq
- An IEnumerable<T> to create an hashset from.
- func
- A function to extract a sequence of keys from each element.
Type Parameters
Return Value
An hashset that contains the elements from the input sequence.