dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [DotGNU]How do you simulate an inner class in C#?


From: Mohan Embar
Subject: RE: [DotGNU]How do you simulate an inner class in C#?
Date: Sun, 25 May 2003 00:38:27 -0500

Hi ^Tum,

>A java inner class is simply a class that has a reference to the parent
>class.  You just need to pass a reference to the 'outer' class to the
>'inner' class's constructor and store it somewhere.

Thank you so much for your reply. Until I read your reply and then reread
my C# book, I didn't realize that a C# nested class was allowed access
to its outer class' private member variables too (provided it has
an instance). I'm still reconciling the similarities and difference
between both languages. I'm really glad I asked before coding something
up. Thanks so much again.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]