Can someone explain the nesting in C#? You have a namespace. Inside the namespace, you have a class. Then, inside this class, you have the main function. Why is it set up this way. Are all classes supposed to be ouside this namespace? When would you onclude a class inside this namespace?
complete
-2
Junior Poster
Recommended Answers
Jump to PostLook,
Nested namespaces: used collect all related-functionality classes inside a parent namespace likenamespace System { class string... class int... class ..... namespace IO { class File... class Stream.... class ..... } }
Class inside class to limit the functionality of nested class to the parent class …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.