我不断收到错误:“类型”不包含定义“GetMethod”
CS1061: 'Type' does not contain a definition for 'GetMethod' and no extension method 'GetMethod' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?).
我试图构建Windows应用商店的应用程序!
这里是我的代码:
MethodInfo theMethod = itween.GetType().GetMethod (animation.ToString(), new Type[] {
typeof(GameObject),
typeof(Hashtable)
});
theMethod.Invoke(this, parameters);