System.Collections.Generic.IEnumerable.Contains(V)

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

1 Examples 7

19 Source : Set.cs
with GNU Affero General Public License v3.0
from sergeystoyan

static bool AcontainsB<S>(IEnumerable<V> aValues, IEnumerable<V> bValues) where S : Set<V, T>
        {
            if (bValues == null)
                return true;
            if (aValues == null)
                return false;
            foreach (V v in bValues)
                if (!aValues.Contains(v))
                    return false;
            return true;
        }