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

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

2 Examples 7

19 Source : Multimap.cs
with MIT License
from microsoft

public bool ContainsEntry(K key, V value)
        {
            HashSet<V> keyElements;
            if (!_elements.TryGetValue(key, out keyElements))
            {
                return false;
            }
            return keyElements.Contains(value);
        }

19 Source : InheritedTypeDictionary.cs
with MIT License
from SpiceSharp

public bool Contains(V value) => _values.Contains(value.ThrowIfNull(nameof(value)));