Accessing nonstatic member of outer class
Is there anyway to access nonstatic member (either method or variable) of outer class from nested (inner) class? Here is the example:
public class outer {
public string st = "";
public class inner {
//here I need to access the st string without declaring st as static
}
}
I could, of course, create a new object of type outer and refer the st variable using that object, like myOuter.st but then I think I just create a new instance of st. Please suggest. Thanks.
david 0Posted Nov 8, 2003, 6:50 AM
scott.haymanPosted Nov 8, 2003, 12:21 AM
david 0Posted Nov 7, 2003, 9:19 PM
scott.haymanPosted Nov 7, 2003, 5:22 PM
chrishornbergerPosted Oct 9, 2003, 8:28 AM
katanaPosted Oct 9, 2003, 1:06 AM