Search Results for

    Show / Hide Table of Contents
    View Source

    Class EnumExtensions

    Provides extension methods to System.Enum.

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class EnumExtensions

    Methods

    View Source

    HasFlagAny<T>(T, T)

    Determines whether any of the flags/bits are set within the enum value.

    Declaration
    public static bool HasFlagAny<T>(this T value, T flags)
        where T : Enum
    Parameters
    Type Name Description
    T value

    The value.

    T flags

    The flags.

    Returns
    Type Description
    System.Boolean

    true if any of the flags/bits are set within the enum value; otherwise, false.

    Type Parameters
    Name Description
    T

    The enum type.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • HasFlagAny<T>(T, T)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX