CollectionHelper

Namespace: Murder.Utilities
Assembly: Murder.dll

public static class CollectionHelper

⭐ Methods

ToStringDictionary(Dictionary`2&, IEnumerable, Func<T, TResult>, Func<T, TResult>)

public Dictionary<TKey, TValue> ToStringDictionary(Dictionary`2& existingDictionary, IEnumerable<T> collection, Func<T, TResult> toKey, Func<T, TResult> toValue)

Parameters
existingDictionary Dictionary<TKey, TValue>&
collection IEnumerable<T>
toKey Func<T, TResult>
toValue Func<T, TResult>

Returns
Dictionary<TKey, TValue>

ToStringDictionary(IEnumerable, Func<T, TResult>, Func<T, TResult>)

public Dictionary<TKey, TValue> ToStringDictionary(IEnumerable<T> collection, Func<T, TResult> toKey, Func<T, TResult> toValue)

Parameters
collection IEnumerable<T>
toKey Func<T, TResult>
toValue Func<T, TResult>

Returns
Dictionary<TKey, TValue>