In C#, we can define a class within another class . It is known as a nested class. For example, class OuterClass { …
Read moreWhat is the use of nested class?
As mentioned in the section Nested Classes, nested classes enable you to logically group classes that are only used in one place, increase the use of encapsulation, and create more readable and maintainable code .
Read more