我有一个简单的功能:
public string getType(object obj){ Type type = obj.getType(); return type.FullName; }
如果对在运行时创建的字符串对象使用此函数,则该函数返回"System.RuntimeType"...
但它应该返回"System.String"...
c#
c# ×1