Global variable in C# - TechRepublic
General discussion
March 25, 2005 at 12:31 PM
dodik

Global variable in C#

by dodik . Updated 21 years, 3 months ago

Hi,
working with C#, I created namespace
“First”
{
//with tree public classes
public class A(){}
public class B(){}
public class C(){}
}

How to create a
public string Var;
variable that will be seen (accessable) in all three classes ?

This discussion is locked

All Comments