IDE: C# .net, winforms VS 2010
I have a class SystemConstants.cs
As shown below:
public class SystemConstants
{
//String Constants
public const string Hello = "Hello";
public const string Youth = "Youth";
}
And have Form1.cs
Now in form1.cs
txtbox1.text = SystemConstants.Hello;
txtbox2.text = SystemConstants.Youth;
Now I want to know is there any why by which instead of writing
SystemConstants.Hello; //I want to avoid writing class name or I want to use alias for class name
Like this SystemConstants alias sc;
txtbox1.text = sc.Hello;