public static Attribute[] GetAttributes(this MeasurementType measType)
        {
            var fi = measType.GetType().GetField(measType.ToString());

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

            return(attributes);
        }