Are nested classes under-rated?

Posted by Aaron Anodide on Programmers See other posts from Programmers or by Aaron Anodide
Published on 2012-10-29T18:28:44Z Indexed on 2012/10/29 23:19 UTC
Read the original article Hit count: 188

Filed under:
|

I'm not trying to say I know something everyone else doesn't but I've been solving more and more designs with the use of nested classes, so I'm curious to get a feeling for the acceptablilty of using this seemingly rarely used design mechanism.

This leads me to the question: am I going down an inherintly bad path for reasons I'll discover when they come back to bite me, or are nested classes maybe something that are underrated?

Here are two examples I just used them for: https://gist.github.com/3975581 - the first helped me keep tightly releated heirarchical things together, the second let me give access to protected members to workers...

© Programmers or respective owner

Related posts about c#

Related posts about design