开发者

Compiler Errors C#

        client.MessageRecieved += new EasyTCPClient.StringCarrier(this.client_MessageRecieved);
        client.OnConnectionLost += new EasyTCPClient.OnConnectionLostHandler(this.client_OnConnectionLost);
        client.Error += new EasyTCPClient.ErrorCarrier(this.client_Error);

I get the error messages:

'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

I'm fairly new to C# so any help given would be greatly appreciated, 开发者_如何学JAVAthanks. -Neel.


The error message indicates you are trying to access a member with private or protected visibility, which is not allowed.

This library is not part of .net and so it's hard for me to work out how it is meant to be used. I can't immediately find any documentation.


Those errors mean that those events are either private or protected modifiers on. Its hard to know how this library is designed.

Same with your BabbelenControls.


Change the methods to public in order to be used from another class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜