Suppose in a winform application we have program.cs:
static class Program
{
public static SomeClass someClass;
[STAThread]
static void Main()
{
}
}
therefore, for use someClassin other classes in the current Project, we must accessProgram.someClass
The question is, can we make an alias for Program.someClass, for example, for example c1, and use c1in the code instead Program.someClass?
user415789
source
share