C # equivalent of importing wildcards in Java

Is there a way in C # to import everything inside a namespace, for example, in Java with a wildcard?

import java.awt.*;
+2
source share
1 answer

What the normal directive does. For instance:

using System;

means you can use Console, Guid, Int32, etc. without qualification. The closest equivalent to a single import in Java is:

using Console = System.Console;

(etc.)

but it is not used very often.

+15
source

Source: https://habr.com/ru/post/1787987/


All Articles