Reputation: 8682
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.cs 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
Upvotes: 0
Views: 1830
Reputation: 9739
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
Upvotes: 1
Reputation: 9209
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?
Upvotes: 2