Innovenergy_trunk/csharp/Lib/StatusApi/Devices/Device.cs

17 lines
287 B
C#
Raw Normal View History

namespace InnovEnergy.Lib.StatusApi.Devices;
2023-02-22 13:46:36 +00:00
public abstract record Device
{
public String DeviceType
{
get
{
var t = GetType();
2023-02-22 13:46:36 +00:00
while (!t!.IsAbstract)
t = t.BaseType;
2023-02-22 13:46:36 +00:00
return t.Name;
}
}
}