What is namespaces
Answer / kirti
Namespace is a logical naming scheme for group related types.Some class types that logically belong together they can be put into a common namespace. They prevent namespace collisions and they provide scoping. They are imported as "using" in C# or "Imports" in Visual Basic. It seems as if these directives specify a particular assembly, but they don't. A namespace can span multiple assemblies, and an assembly can define multiple namespaces. When the compiler needs the definition for a class type, it tracks through each of the different imported namespaces to the type name and searches each referenced assembly until it is found.
Namespaces can be nested. This is very similar to packages in Java as far as scoping is concerned.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are Action Filters in ASP.NET MVC and its use?
What is Partial Assembly References?
Can a view be shared across multiple controllers? If yes, how we can do that?
what is lazy loading in entity framework?
Can you explain renderbody and renderpage in mvc?
What is the difference between viewbag and viewdata in asp.net mvc?
What is difference between viewbag and viewdata and tempdata?
How does the 'page lifecycle' of asp.net mvc works?
what are generics? Without generics what are the disadvantages in 1.1?
3 Answers HP, iSoft, nTech Solutions,
Explain covariance and contra-variance in .net framework 4.0. Give an example for each.
Which is the best institute for .net?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?