TriLib
Search Results for

    Show / Hide Table of Contents

    Class FlagUtils

    Provides utility methods for working with integer-based flags.

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

    Methods

    HasFlag(int, int)

    Determines whether the specified flag is set within the given integer value.

    Declaration
    public static bool HasFlag(int value, int flag)
    Parameters
    Type Name Description
    int value

    The integer value to check.

    int flag

    The flag to look for.

    Returns
    Type Description
    bool

    true if flag is set in value; otherwise, false.

    In this article
    Back to top Generated by DocFX