Welcome, Guest Ohm namah shivoy
www.faqpanel.com
Home | ASP.Net | C-Sharp | Winforms | MS SQL | AJAX | XML | .Net Training*** | Search
Invite friends 
Extras 
VS Tips & Tricks
Top 10 .Net Tools
Special folders in ASP.Net
VS Find Combobox
 C-Sharp (C#) Interview Questions and Answers
How do I use an alias for a namespace or class in C#?
Use the using directive to create an alias for a long namespace or class. The using alias has a scope within the namespace you declare it in.

// Namespace:
using act = System.Runtime.Remoting.Activation;

// Class:
using list = System.Collections.ArrayList;

list l = new list(); // Creates an ArrayList
act.UrlAttribute obj; // Equivalent to System.Runtime.Remoting.Activation.UrlAttribute obj

What is delegate in C#?
Why strings are called Immutable data Type?
What is BOXING and UNBOXING in C#?
Does C# support jagged arrays?
What is the datatype that allows the retrieval of data by a unique key?
How can you sort the element of an aaray in descending order?
What anonymous methods in C# 2.0?
Are private class-level variables inherited?
What is the "Reflection"?
How do I use an alias for a namespace or class in C#?