错误CS0030无法将类型“object”转换为“System.TypedReference”

问题描述 投票:0回答:1

我无法使用最新版本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

c# .net visual-studio-2017
1个回答
0
投票

您是如何解决此错误的。我有同样的错误 cs0030 无法将“对象”转换为“System.TypedReference”

© www.soinside.com 2019 - 2024. All rights reserved.