O
O
Ostic2020-02-02 15:00:33
C++ / C#
Ostic, 2020-02-02 15:00:33

Why doesn't using static directive work?

Hello.
why doesn't this design work?

using static Auto.Common.Constants;
namespace  Auto
{
namespace Common
{
class Constants
{
public static int M = 1;
public static int N = 2;
}

}
}

you can't say that...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Ostic, 2020-02-02
@Ostic

5e36cdb11d7d8491718993.jpeg
everything works - the online compiler just seems to be buggy, but in the studio everything works fine.
And why do you need such advice like go, padawan, and read 400-500 pages, and then ...
there was a specific question related to the using static directive

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question