聊天程序错误-可访问性不一致 [英] Chat Program error - inconsistent accessability
问题描述
我有一个问题....我必须为大学做一个聊天程序.我得到了有关互联网概念的编码,但是现在我遇到了一个问题,我的C#知识尚未涵盖.
客户端运行良好,没有问题,但是在服务器端,一切都不正常.我受够了,以至于我乱扔了那个家伙的代码,照样抄袭了,错误仍然不断出现.
这是我当前正在努力解决的错误:不一致的可访问性:参数类型"ChatZServer.ChatServer.StatusChangedEventArgs"比方法"ChatZServer.frmChatZServer.mainServer_StatusChanged(对象,ChatZServer.ChatServer.StatusChangedEventArgs)更难访问''C:\ Users \ PTA11HE911008.CTUTRAINING \ Documents \ Visual Studio 2008 \ Projects \ ChatZServer \ ChatZServer \ Form1.cs
有谁知道可以帮助我.
如果需要,我什至可以给我编码.
I Have a problem....I had to do a chat program for college. I got the coding for the idea of the internet, but now i''m facing a problem, that my knowledge of C# does not yet cover.
The client side is working perfectly, no problems there, but on the Server side, everything is not okay. I got so fed up that I litterally copied the guy''s coding just as it is, and the error still kept popping up.
This is the error i''m currently struggling with: Inconsistent accessibility: parameter type ''ChatZServer.ChatServer.StatusChangedEventArgs'' is less accessible than method ''ChatZServer.frmChatZServer.mainServer_StatusChanged(object, ChatZServer.ChatServer.StatusChangedEventArgs)'' C:\Users\PTA11HE911008.CTUTRAINING\Documents\Visual Studio 2008\Projects\ChatZServer\ChatZServer\Form1.cs
Is there any one with the knowledge to help me.
I can even give you my coding if neccesary
推荐答案
彻底阅读错误消息,理解错误消息并将访问修饰符更改为使它们相同所需的内容. br/>
—SA
Read error message thoroughly, understand it and change access modifier to the one which is required to make them the same.
—SA
这篇关于聊天程序错误-可访问性不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!