1
Vote

Feature Request: AddUnique method to CollectionExtensions

description

Hi.
 
Thank you for Edge Extensions.
 
I would like to request a new extension method for collections:
 
public static void AddUnique(this List<string> list, string item)
    {
        if (!list.Contains(item))
        {
            list.Add(item);
        }
    }
 
Thank you.

comments