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

17 lines
287 B
C#

namespace InnovEnergy.Lib.StatusApi.Devices;
public abstract record Device
{
public String DeviceType
{
get
{
var t = GetType();
while (!t!.IsAbstract)
t = t.BaseType;
return t.Name;
}
}
}