dshi15
asked on
variable scope in C#
Hi Expert,
How I can access test value in Other class?
How I can access test value in Other class?
class Program
{
static int test= 0;
public Program()
{
test = 10;
}
public static void Main()
{
}
}
Class Other
{
int i =Program.test
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.