NameSpace
-
I want to create a namespace. I don't know how to do it. I add a class in my project. Should I add keyword namespace myNmaspace to it. or how can I do it. I want three files myNmaespace.fileA myNmaespace.fileB myNmaespace.fileC Where fileA.ca, fileB.cs,fileC.cs are my Classfiles.
seema
-
I want to create a namespace. I don't know how to do it. I add a class in my project. Should I add keyword namespace myNmaspace to it. or how can I do it. I want three files myNmaespace.fileA myNmaespace.fileB myNmaespace.fileC Where fileA.ca, fileB.cs,fileC.cs are my Classfiles.
seema
yp. it like this:
//here goes using
namespace myNmaspace
{
// your class here
}And of course you can use same namespace on more than one file. You have to repeat it for every file you want to do it.