JB *除某些情况外。委托返回类型,数组转换......<...>Google c# covariance...Net (c#?) does not* support covariance and contravariance.You should be able to define it as IAnimal[] GetAnimals() and callToArray() on MyCollection (presuming you''re inheriting List<T>).JB*Except in some cases. Delegate return types, Array conversion... 这篇关于通用接口转换问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-31 05:33