CSharp Classes and Namespaces


#1

While I was working on Windows Desktop App development exercises, I noticed that the App namespace contains, so-called, “partial class” for the Windows Form. It is automatically generated by the Visual Studio IDE, when a new app project created. You can have multiple classes in the same namespace, you can create instances (objects), fields and methods and share them from different classes… But what is the purpose of declaring a “partial” class? Why do we need one?