I have a class named 'MAIN'. within it there is a nested class named 'NESTED' and it is a private class.
in MAIN class, I declared an object of NESTED class.
How can I create a public property that represents that object.
Here's a sample code:
C# |
In this code, Compiler Creates error because NESTED class accessibility is private and nest object is public.
What Should I do?
Thanks.


Manikavelu VelayuthamRank #413 · 6K reputationPosted Aug 24, 2010, 3:12 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Aug 25, 2010, 9:36 AM EDT