client.MessageRecieved += new EasyTCPClient.StringCarrier(this.client_MessageRecieved);
client.OnConnectionLost += new EasyTCPClient.OnConnectionLostHandler(this.client_OnConnectionLost);
client.Error += new EasyTCPClient.ErrorCarrier(this.client_Error);
我收到错误消息:
'EasyTCP.EasyTCPClient.OnConnectionLost' is inaccessible due to its protection level 'EasyTCP.EasyTCPClient.MessageRecieved' is inaccessible due to its protection level 'EasyTCP.EasyTCPClient.Error' is inaccessible due to its protection level
我是 C# 的新手,所以非常感谢您提供的任何帮助,谢谢。 -尼尔。
最佳答案
错误消息表明您正在尝试访问具有私有(private)或 protected 可见性的成员,这是不允许的。
这个库不是 .net 的一部分,所以我很难弄清楚它的用途。我无法立即找到任何文档。
关于c# - 编译器错误 C#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7308700/