0

What is partial class in c#

just show a demo of it

12th Jan 2018, 5:57 PM
Kwane Manisha
Kwane Manisha - avatar
2 odpowiedzi
+ 2
It is possible to split the definition of a class or a struct, an interface or a method over two or more source files. Each source file contains a section of the type or method definition, and all parts are combined when the application is compiled. public partial class Employee { public void DoWork() { } } public partial class Employee { public void GoToLunch() { } }
12th Jan 2018, 8:55 PM
Vinicius Souza
Vinicius Souza - avatar