将V8中的deviceIp字段设为只读,解决IDE0044警告

This commit is contained in:
zqm
2025-10-29 17:24:53 +08:00
parent b1c8ee58d1
commit 860f78815c

View File

@@ -128,7 +128,7 @@ namespace JoyD.Windows.CS.Toprie
}
// 私有字段
private string deviceIp;
private readonly string deviceIp;
private Socket socket = null;
private static bool isSdkInitialized = false;
private static readonly Dictionary<string, V8> deviceInstances = new Dictionary<string, V8>();