Nested Class in C#. How can i use an attribute from a class into a Nested Class like an global variable?

  • Thread starter Thread starter Nicolas Cutire
  • Start date Start date
N

Nicolas Cutire

Guest
class Outer_class {

private var1;

class Inner_class {
private var2;

public bool Mayor()
{
return var1>var2; // how can i use var1 without doing it static?
}
}
}

Continue reading...
 
Back
Top