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.

katanaRank #7,224 · 246 reputationPosted Oct 8, 2003, 9:06 PM EDT
chrishornbergerRank #2,700 · 517 reputationPosted Oct 9, 2003, 4:28 AM EDT
scott.hayman9 reputationPosted Nov 7, 2003, 12:22 PM EST
david 0Rank #8,108 · 228 reputationPosted Nov 7, 2003, 4:19 PM EST
scott.hayman9 reputationPosted Nov 7, 2003, 7:21 PM EST
david 0Rank #8,108 · 228 reputationPosted Nov 8, 2003, 1:50 AM EST