Namespace error

D

Dharma

Hello,
I am trying to compile this "hello world" program but it gives me this
following error,
"A namespace does not directly contain members such as fields or methods"
Can someone pelse help me with this?
Here's my code:
Using System;

namespace Helloworld
{
class Helloworldindos
{
static void Main()
{
Console.WriteLine("Hello World");
}
}
}
 
J

Jon Skeet [C# MVP]

Dharma said:
Hello,
I am trying to compile this "hello world" program but it gives me this
following error,
"A namespace does not directly contain members such as fields or methods"
Can someone pelse help me with this?
Here's my code:
Using System;

This line is the problem. C# is case-sensitive - that should be
"using" rather than "Using".
 
T

Tony!

1On Thu, 27 Nov 2003 12:24:42 -0500, "Dharma"
Thanks Jon
Jon Skeet said:
This line is the problem. C# is case-sensitive - that should be
"using" rather than "Using".

I'm also at the "Hello World" phase of learning C#..

Memorizing the proper case for various keywords looks like it will
take a bit of time!

Gonna make a good go at it though :)

Tony!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top