© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•8mo ago•
54 replies
jd

Use cases of nested classes

If I have an outer class and an inner class. Most of the time it’s for helper purposes and the inner class is instantiated within the outer class correct? I’m a little stuck on this but, it wouldn’t make sense to instantiate an instance of the outer class from within the inner class, if that’s even possible? Also does the inner class have access to the outer class’ methods?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Purpose and use of nested classes in C#
C#CC# / help
13mo ago
ASP storage use cases
C#CC# / help
4y ago
how do i use classes?
C#CC# / help
5mo ago
Collection of different classes
C#CC# / help
4y ago