4
只需要進行一些反思,我注意到MethodInfo
有ReturnParameter
,ReturnType
和ReturnTypeCustomAttributes
。方法信息返回類型信息
現在ReturnParameter
包含ReturnType
和ReturnTypeCustomAttributes
。那麼不應該ReturnType
和ReturnTypeCustomAttributes
被標記爲棄用?還是我錯過了某個地方的目的?
ReturnParameter
在.NET 2.0ReturnType
加入在NET 1.0ReturnCustomAttributes
加入在NET 1.0
對我來說就像一個重構的想法進入API。那麼至少可以總結一下ReturnType是常用的方法。 – Dreamwalker