public static string ShortName(this SensorType hardwareType) { return(hardwareType.GetAttributeValueOrDefault <ShortNameAttribute>().ShortName); }