将DeviceManager中的_targetDeviceId字段设为只读,解决IDE0044警告
This commit is contained in:
@@ -165,7 +165,7 @@ namespace JoyD.Windows.CS.Toprie
|
||||
private List<DeviceInfo> _deviceList = new List<DeviceInfo>();
|
||||
|
||||
// 目标设备ID,用于指定ID连接
|
||||
private int _targetDeviceId = -1;
|
||||
private readonly int _targetDeviceId = -1;
|
||||
// 当前设备ID
|
||||
private int _currentDeviceId = -1;
|
||||
// 默认设备IP
|
||||
|
||||
Reference in New Issue
Block a user