阅读背景:

default(T)with empty collection而不是null

来源:互联网 

I'd like to have generic method which returns default value for passed type, but for collection type I'd like to get empty collection instead of null, for example:I'd like to have generic method which returns d




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: