namespace InnovEnergy.Lib.StatusApi; public abstract record DeviceStatus { public String DeviceType { get { var t = GetType(); while (!t!.IsAbstract) t = t.BaseType; return t.Name.Replace("Status", ""); } } }