我无法使用最新版本VS2017 build 15.5.0编译以下代码,我之前没有这个问题。
void MyMethod(object[] objects) { TypedReference.SetTypedReference((TypedReference)objects[0], objects[1]); }
我向微软报告了 https://developercommunity.visualstudio.com/content/problem/166353/error-cs0030-cannot-convert-type-object-to-systemt.html
您是如何解决此错误的。我有同样的错误 cs0030 无法将“对象”转换为“System.TypedReference”