Here are the examples of the csharp api System.Collections.Generic.List.AddUnique(TV) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : TypeExt.cs
License : MIT License
Project Creator : OrbitalShell

public static void AddOrReplace<TK, TV>(this Dictionary<TK, List<TV>> dic, TK key, TV value)
            if (dic.ContainsKey(key))
                dic.Add(key, new List<TV> { value });