我正在尝试将类型对象的数组转换为另一个数组。有什么想法吗?
Public Sub LogInfo(ByVal logMessage As Object(), ByVal functionName As String)
...
Dim listTp() As ThirdParties
' here I want to cast my logMessage to be of type ThirdParties
End Sub
我已尝试在MSDN中建议的解决方案:https://msdn.microsoft.com/en-us/library/tbatye4h.aspx,但它无效,返回错误告诉我ThirdParties不是引用类型。