Show / Hide Table of Contents

    Class Enum

    Provides the base class for enumerations.

    Inheritance
    Object
    ValueType
    Enum
    Inherited Members
    ValueType.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: System
    Assembly: mscorlib.dll
    Syntax
    public abstract class Enum : ValueType

    Methods

    HasFlag(Enum)

    Determines whether one or more bit fields are set in the current instance.

    Declaration
    public extern bool HasFlag(Enum flag)
    Parameters
    Type Name Description
    Enum flag

    An enumeration value.

    Returns
    Type Description
    Boolean

    true if the bit field or bit fields that are set in flag are also set in the current instance; otherwise, false.

    Exceptions
    Type Condition
    ArgumentException

    flag is a different type than the current instance.

    | Improve this Doc View Source

    ToString()

    Converts the value of this instance to its equivalent string representation.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    The string representation of the value of this instance.

    Overrides
    Object.ToString()
    Remarks

    Available only in mscorlib build with support for System.Reflection.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018 nanoFramework Contributors
    Generated by DocFX