我不斷收到錯誤:「類型」不包含定義「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);