C#.NET — which statement is correct about using statements?
C# Programming
Namespaces
Difficulty: Easy
Choose an option
-
Ausing statement can be placed anywhere in the C#.NET source file.
-
BIt is permitted to define a member at namespace level as a using alias.
-
CA C#.NET source file can contain any number of using statements.
-
Dusing can create alias for namespace but not for its elements.
-
Eusing can create alias for elements but not for namespace.
Answer
Correct Answer: A C#.NET source file can contain any number of using statements.
Explanation
Fact:A source file can contain multiple using directives. They must appear at the top of the file (before namespace or class declarations). Aliases can be created for namespaces or types.
Final Answer:A C#.NET source file can contain any number of using statements.