A namespace helps you to divide and conquer the complexity of the object hierarchy.
Everything is an object that derives from the root class System.Object
If you are using several objects from the same namespace you can save typing by adding the necessary using directive to the top of your program
The main use of the using directive is to be able to refer to types without having to fully qualify them all.
Using Alias Directive
This can be used to create an alias for a namespace or a type.
The right side of a using alias directive must always be fully qualified.
using Excel = Microsoft.Office.Excel
Imports Excel = Microsoft.Office.Excel
The using directive is not to be confused with the Using Statement which is used for defining the scope of objects.
Microsoft.CSharp namespace ?
This namespace contains classes that support compilation and code generation using th C# language.
Statememts are terminated with a semi-colon
Variables are declared after the datatype
Curly brackets are used to delimit everything around all code blocks - more consistent
Allow unmanaged code to be called
No line continuation character
Less syntax - short and to the point.
Has no implicit type conversion
Must add parentheses to subroutines manually
String concatenation is done using "+"
Less automatic formatting than VB.NET
Only supports late binding through Reflection
Does not support parameterized properties
© 2017 Better Solutions Limited. All Rights Reserved. © 2017 Better Solutions Limited