ForeverZero_DataSync/Util/EnumUtil.cs
using System;
using System.ComponentModel;
using System.Linq;
using System.Reflection;

namespace DataSynchronizor.Util
{
    public static class EnumUtil
    {
        public static string GetEnumDescription(Enum value)
        {
            var fi = value.GetType().GetField(value.ToString());

            if (fi.GetCustomAttributes(typeof(DescriptionAttribute), false) is DescriptionAttribute[] attributes && attributes.Any())
            {
                return attributes.First().Description;
            }

            return value.ToString();
        }
    }
}