在我可以使用的非静态方法中this.GetType(),它将返回Type.如何Type在静态方法中获得相同的内容?当然,我不能只写,typeof(ThisTypeName)因为ThisTypeName只在运行时才知道.谢谢!
this.GetType()
Type
typeof(ThisTypeName)
ThisTypeName
.net c# static-methods types
通常我可以调用this.GetType(),但我无法在静态方法中访问它.我们怎么检查呢?
.net c# reflection static
.net ×2
c# ×2
reflection ×1
static ×1
static-methods ×1
types ×1