internal static IDeviceExt ToExt(this IDevice device) { return((device) switch { IDeviceExt ext => ext, IHADevice ha => new HADeviceExt(ha), ILSFSDevice lsfs => new LSFSDeviceExt(lsfs), IVTLDevice vtl => new VTLDeviceExt(vtl), _ => new DeviceExt(device) });
public VTLDeviceExt(IVTLDevice vtl) : base(vtl) { vtlDevice = vtl; }