partial是C#的关键字,用partial修饰的class表示是完整class定义的一部分
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/partial-classes-and-methods
以下代码来自官方文档:
// Employee类的定义分为两部分 public partial class Employee { public void DoWork() { } } public partial class Employee { public void GoToLunch() { } }