How to Split a Class Across Files with partial in C#
A partial class is written in pieces: one file for its data, another for its methods, and the compiler joins the pieces into one class. It's how generated code and your own code can share a class without overwriting each other.
