I know that in java that we use *(asterisk) to import all the contents in a package like
import java.lang.*;
Then why don’t we use same *(asterisk) in C# to import all the contents is there any method like in java to import all the contents.
What is the difference between
import java.awt.*;
and
using System.windows.forms;
What the Java
importdoes what .NET is called a reference – adding a reference to an assembly in .NET allows you to use the (public) types defined in that assembly.The C#
usingdirective is simply a way to access these types without typing out the whole namespace.You can also use the directive to provide namespace aliases.