Search Results for

    Class EnumExtensions

    Extentions for enums.

    Inheritance
    object
    EnumExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RedLoader
    Assembly: RedLoader.dll
    Syntax
    public static class EnumExtensions

    Methods

    HasFlag(Enum, Enum)

    From: http://www.sambeauvois.be/blog/2011/08/enum-hasflag-method-extension-for-4-0-framework/ A FX 3.5 way to mimic the FX4 "HasFlag" method.

    Declaration
    public static bool HasFlag(this Enum variable, Enum value)
    Parameters
    Type Name Description
    Enum variable

    The tested enum.

    Enum value

    The value to test.

    Returns
    Type Description
    bool

    True if the flag is set. Otherwise false.