Multiple choice technology web technology

How to create an alias name for a namespace in C#?

  1. using AliasName = System.Text;

  2. using System.Text AliasName;

  3. Alias System.Text AliasName;

  4. Not Possible

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

C# supports namespace aliases using the syntax 'using AliasName = Fully.Qualified.Namespace;'. This creates a shorthand reference that can be used throughout the file. The other syntax options shown are not valid C# syntax for creating aliases.