I have small question about namespaces.
In chapter 5(the chapter that focuses on c# coding basics) we created class calculator, which exposes 4 simple methods.
This class was created inside the Calculator.cs file, which in turn was stored in the App_Code folder.
Then in the CalculatorDemo.aspx page, we created an instance of the above class, and called it's methods.
My question is that: We could create an instance of the Calculator class, just with the name of the class-that is Calculator, without having to prefix it with the fully qualified name of the namespace that includes the Calculator class.
Inside CalculatorDemo.aspx, I have commented out all of the using statements in the page, and I could still create an instance of Calculator, with no errors, including full support of the VS2010's intellisense.
I kept on reading the namespace section of chapter 5, and after reading it, i dont get it, how can I use the Calculator class only by it's name, when all of the using statements are commented out.
I guess that CalculatorDemo.aspx and Calculator.cs are both under the same namespace, is that right? and what namespcae is it? I've tried ctrl+dot and got nothing?
10x for any reply...