Why always partial class in c# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Why always partial class in c#

in every program i see partial class by default why partial class what is partial class why it is used in all programs by default

14th Dec 2017, 7:42 AM
GHR
GHR - avatar
1 Answer
+ 3
Those partial classes act like reservations for the compiler to allocate resources right from the start. it also helps to avoid errors when you try to reference something later that hasn't yet been defined.
15th Dec 2017, 5:29 AM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar