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

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

1 Examples 7

19 Source : EnumUtility.cs
with MIT License
from dotnet-toolbelt

public static bool ContainsValue<TEnum>(TEnum value) where TEnum : Enum
        {
            return GetValues<TEnum>().Contains(value);
        }