Table of Contents

Class GenericCollectionExtensions

Namespace
System.Collections.Generic
Assembly
Instagile.Model.dll
public static class GenericCollectionExtensions
Inheritance
GenericCollectionExtensions
Inherited Members

Methods

AddRange<T>(ObservableCollection<T>, IEnumerable<T>)

public static void AddRange<T>(this ObservableCollection<T> source, IEnumerable<T> elements)

Parameters

source ObservableCollection<T>
elements IEnumerable<T>

Type Parameters

T

Deconstruct<T, U>(KeyValuePair<T, U>, out T, out U)

public static void Deconstruct<T, U>(this KeyValuePair<T, U> kvp, out T key, out U value)

Parameters

kvp KeyValuePair<T, U>
key T
value U

Type Parameters

T
U

GetOrAdd<T>(Dictionary<T, Guid>, T)

public static Guid GetOrAdd<T>(this Dictionary<T, Guid> self, T key) where T : notnull

Parameters

self Dictionary<T, Guid>
key T

Returns

Guid

Type Parameters

T

GetOrAdd<T, U>(Dictionary<T, U>, T)

public static U GetOrAdd<T, U>(this Dictionary<T, U> self, T key) where T : notnull where U : new()

Parameters

self Dictionary<T, U>
key T

Returns

U

Type Parameters

T
U

GetOrAdd<T, U>(Dictionary<T, U>, T, Func<U>)

public static U GetOrAdd<T, U>(this Dictionary<T, U> self, T key, Func<U> create) where T : notnull

Parameters

self Dictionary<T, U>
key T
create Func<U>

Returns

U

Type Parameters

T
U

GetOrDefault<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>, TKey, TValue?)

public static TValue? GetOrDefault<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> self, TKey key, TValue? defaultValue = default)

Parameters

self IReadOnlyDictionary<TKey, TValue>
key TKey
defaultValue TValue

Returns

TValue

Type Parameters

TKey
TValue

Intersect<T>(HashSet<T>, HashSet<T>)

public static HashSet<T> Intersect<T>(this HashSet<T> self, HashSet<T> other)

Parameters

self HashSet<T>
other HashSet<T>

Returns

HashSet<T>

Type Parameters

T

Invert<TKey, TValue>(Dictionary<TKey, TValue>)

public static Dictionary<TValue, TKey> Invert<TKey, TValue>(this Dictionary<TKey, TValue> self) where TKey : notnull where TValue : notnull

Parameters

self Dictionary<TKey, TValue>

Returns

Dictionary<TValue, TKey>

Type Parameters

TKey
TValue

InvokeOnIterate<T>(Func<IEnumerable<T>>)

public static IEnumerable<T> InvokeOnIterate<T>(this Func<IEnumerable<T>> source)

Parameters

source Func<IEnumerable<T>>

Returns

IEnumerable<T>

Type Parameters

T

TryAdd<T, U>(Dictionary<T, U>, T, U)

public static bool TryAdd<T, U>(this Dictionary<T, U> self, T key, U value) where T : notnull

Parameters

self Dictionary<T, U>
key T
value U

Returns

bool

Type Parameters

T
U

Union<T>(HashSet<T>, HashSet<T>)

public static HashSet<T> Union<T>(this HashSet<T> self, HashSet<T> other)

Parameters

self HashSet<T>
other HashSet<T>

Returns

HashSet<T>

Type Parameters

T