zhengyiming
2025-03-31 f4a07605ede31f0525aa592ce2202e44bff46cbe
LifePayment/LifePayment.Domain.Shared/Extension/EnumExtension.cs
@@ -165,6 +165,10 @@
    /// <returns></returns>
    public static string GetDescription(this object value)
    {
        if (value == null)
        {
            return null;
        }
        return value.GetType().GetMember(value.ToString() ?? string.Empty).FirstOrDefault()
                             ?.GetCustomAttribute<DescriptionAttribute>()?.Description;
    }