Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Class EnumExtensions

    Namespace
    AetherUtils.Core.Extensions
    Assembly
    AetherUtils.Core.dll
    Provides extension methods for manipulating Enum objects.
    public static class EnumExtensions
    Inheritance
    object
    EnumExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    Methods

    ToDescriptionString<T>(T)

    Get the string associated with a DescriptionAttribute attribute on an Enum value.
    public static string ToDescriptionString<T>(this T val) where T : Enum

    Parameters

    val T
    The Enum value to get the description string of.

    Returns

    string
    The description string or Empty if no DescriptionAttribute was found.

    Type Parameters

    T
    The Enum type to get the attributes of.
    (c) 2024 Ethan Hann. All rights reserved.