技术栈

c#密封类

令狐掌门
2 年前
c#·c#密封类·c#偏类
C#密封类、偏类在C#中,密封类(Sealed Class)是一种特殊的类,它阻止其他类继承它。你可以通过在类定义前面加上 sealed 关键字来创建一个密封类。