public static ReadOnlyDeviceState Copy(this IDeviceState state) { return(ReadOnlyDeviceState.CopyFrom(state)); }