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
19
Source : Multimap.cs
with MIT License
from microsoft
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
with MIT License
from SpiceSharp
public bool Contains(V value) => _values.Contains(value.ThrowIfNull(nameof(value)));