Search Results for

    Class CollectionGenericExtension

    Inheritance
    object
    CollectionGenericExtension
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 autoAdd Returns the default value of the value type if the key does not exist and the autoAdd parameter is false.

    In This Article