using wrox.procsharp; class test { public static int main() { basics.namespaceexample nsex = new basics.namespaceexample(); //do something with the nsex variable return 0; } }
using system; using introduction = wrox.procsharp.basics; class test { public static int main() { introduction.namespaceexample nsex =new introduction.namespaceexample(); console.writeline(nsex.getnamespace()); return 0; } }
namespace wrox.procsharp.basics { class namespaceexample { public string getnamespace() { return this.gettype().namespace; } } }