private static Attribute[] GetAttributes(this TemperatureScales restartReason)
        {
            var fi = restartReason.GetType().GetField(restartReason.ToString());

            Attribute[] attributes = (Attribute[])fi.GetCustomAttributes(typeof(Attribute), false);

            return(attributes);
        }