C
C#3y ago
wcasa

Some namespace and class questions..

namespace Cool
{
class VeryCool
{
static void main(string[] args)
{
namespace Console
{
WriteLine("Why isnt it possible?");
}
}
}
}
namespace Cool
{
class VeryCool
{
static void main(string[] args)
{
namespace Console
{
WriteLine("Why isnt it possible?");
}
}
}
}
4 Replies
wcasa
wcasaOP3y ago
in my logic, following code should be smth like:
Cool.Console.WriteLine("...");
Cool.Console.WriteLine("...");
but it doesnt work, why?
phaseshift
phaseshift3y ago
you can't have namespaces inside classes
ero
ero3y ago
and much less inside methods
wcasa
wcasaOP3y ago
!solved

Did you find this page helpful?