Class CollectionGenericExtension
Namespace: YVR.Utilities
Assembly: YVR.Utilities.Runtime.dll
Syntax
public static class CollectionGenericExtension
Methods
Name | Description |
---|---|
AddElementsFrom<T>(List<T>, List<T>, Func<T, T, bool>) | Adds elements from the specified data list to the target list based on the specified condition. |
Extract<T>(List<T>, Func<T, bool>) | Extract the elements that meet the condition and remove the extracted elements from the source list |
RemoveAll<T>(List<T>, List<T>, Func<T, T, bool>) | Removes all elements from the target list that satisfy the specified condition, using elements from the data list for comparison. |
SafeAdd<TKey, TValue>(Dictionary<TKey, TValue>, TKey, TValue, bool) | Safe version of Dictionary Add function, which will not trigger error while target key already exists |
SafeGet<TKey, TValue>(Dictionary<TKey, TValue>, TKey, bool) | Safe version of Dictionary [] operator, which will optionally add element if target elements does not exist based on |