System.Collections.Generic.List.AddIfNotContains(T)

Here are the examples of the csharp api System.Collections.Generic.List.AddIfNotContains(T) 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 : Extensions.Collections.cs
License : MIT License
Project Creator : pandepic

public static bool AddIfNotContains<T>(this List<T> list, List<T> values)
        {
            foreach (var value in values)
            {
                if (!list.AddIfNotContains(value))
                    return false;
            }

            return true;
        }