TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
rainplanet
NA
1
0
Accessing nonstatic member of outer class
Oct 8 2003 10:06 PM
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.
Reply
Answers (
6
)
Passing variables between forms
text in html