我希望有一些函数,如果将类的变量Base传递给它,则返回"Base",如果声明为Derived,则"Derived" ,等等.不依赖于它被分配给的值的运行时类型.
Base
Derived
c# types declaration
c# ×1
declaration ×1
types ×1