Determining the class a static method was called on in C#

后端 未结 0 883
太阳男子
太阳男子 2020-12-22 12:42

Suppose I have the following:

class Parent
{
    public static string NameCalledOn()
    {
        Type t = ???;
        return t.Name;
    }
}

class Child :         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题