Unable to cast object of type 'System.Object[]' to 'MyObject[]', what gives?

前端 未结 6 1965
余生分开走
余生分开走 2021-02-19 17:57

Scenario:

I\'m currently writing a layer to abstract 3 similar webservices into one useable class. Each webservice exposes a set of objects that share commonality. I hav

6条回答
  •  清酒与你
    2021-02-19 18:52

    You can't convert an array like that - it's returning an array of objects, which is different from an object. Try Array.ConvertAll

提交回复
热议问题