C# Programming - Namespaces - Discussion

Discussion Forum : Namespaces - General Questions (Q.No. 10)
10.
Which of the following statements is correct about the using statement used in C#.NET?
using statement can be placed anywhere in the C#.NET source code file.
It is permitted to define a member at namespace level as a using alias.
A C#.NET source code file can contain any number of using statement.
By using using statement it is possible to create an alias for the namespace but not for the namespace element.
By using using statement it is possible to create an alias for the namespace element but not for the namespace.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Sridhar said:   7 years ago
B is correct using in only namespace declared example.

Using system.data;
Using system.Web;

Aaron said:   10 years ago
B is also correct;

Example:

using MyListOfTuplesAlias = List<Tuple<string, int>>;

List is a member of System.Collections.Generic.

Post your comments here:

Your comments will be displayed after verification.