Here are the examples of the csharp api System.Collections.Generic.ICollection.AddRangeUnique(T) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : CollectionExtensions.cs
with MIT License
from dotnet-toolbelt
with MIT License
from dotnet-toolbelt
public static int AddRangeUnique<T>(this ICollection<T> collection, IEnumerable<T> values)
{
var count = 0;
foreach (var value in values)
{
if (collection.AddRangeUnique(value))
count++;
}
return count;
}