Search Results for

    Show / Hide Table of Contents

    Class EnumExtensions

    Extensions for enums.

    Inheritance
    object
    EnumExtensions
    Namespace: Evergine.Common.Helpers
    Assembly: Evergine.Common.dll
    Syntax
    public static class EnumExtensions

    Methods

    HasFlag(Enum, Enum)

    An 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; false otherwise.

    In this article
    Back to top
    Generated by DocFX