Enums Enums
Enums Enums
DocFX + Singulink = ♥

Search Results for

    Method HasAnyFlag

    HasAnyFlag<T>(T, T)

    Determines whether the value has any of the given flags.

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

    HasAnyFlag<T>(T, T, T)

    Determines whether the value has any of the given flags.

    Declaration
    public static bool HasAnyFlag<T>(this T value, T flags1, T flags2) where T : unmanaged, Enum
    Parameters
    Type Name Description
    T value
    T flags1
    T flags2
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    HasAnyFlag<T>(T, T, T, T)

    Determines whether the value has any of the given flags.

    Declaration
    public static bool HasAnyFlag<T>(this T value, T flags1, T flags2, T flags3) where T : unmanaged, Enum
    Parameters
    Type Name Description
    T value
    T flags1
    T flags2
    T flags3
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    HasAnyFlag<T>(T, params T[])

    Determines whether the value has any of the given flags.

    Declaration
    public static bool HasAnyFlag<T>(this T value, params T[] flags) where T : unmanaged, Enum
    Parameters
    Type Name Description
    T value
    T[] flags
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    HasAnyFlag<T>(T, ReadOnlySpan<T>)

    Determines whether the value has any of the given flags.

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

    HasAnyFlag<T>(T, IEnumerable<T>)

    Determines whether the value has any of the given flags.

    Declaration
    public static bool HasAnyFlag<T>(this T value, IEnumerable<T> flags) where T : unmanaged, Enum
    Parameters
    Type Name Description
    T value
    IEnumerable<T> flags
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    © Singulink. All rights reserved.