开发者

missing a using directive or an assembly reference?

I am getting this error Error 4 The type or namespace name 'Sample' could not be found (are you missing a using directive or an assembly reference?) F:\oadmin\sea\Controls\Dlg.c开发者_Go百科s 11 7 Controls

here i added Samplein reference section,,,then i used it as Using Sample,,i dont know why i am getting this error

this is the class

namespace sample
{

    public class Server
    {



        public class client
        {

        Bool sent = true

        }

}

}

Can i share exe,,this Sample is an exe


Perhaps because your namespace is sample and not Sample? So if your Dlg namespace is different it needs to have a using sample line not using Sample.

Or perhaps your class is in another project within your solution and you need to include the hierarchy of namespaces?


Your namespace "sample" is lowercase, but you are referring to it in uppercase "Sample" ...

EDIT: You Bool sent is internal, it cannot be accessed from outside of the assembly

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜