4
只需要进行一些反思,我注意到MethodInfo
有ReturnParameter
,ReturnType
和ReturnTypeCustomAttributes
。方法信息返回类型信息
现在ReturnParameter
包含ReturnType
和ReturnTypeCustomAttributes
。那么不应该ReturnType
和ReturnTypeCustomAttributes
被标记为弃用?还是我错过了某个地方的目的?
ReturnParameter
在.NET 2.0ReturnType
加入在NET 1.0ReturnCustomAttributes
加入在NET 1.0
对我来说就像一个重构的想法进入API。那么至少可以总结一下ReturnType是常用的方法。 – Dreamwalker