PureAttribute 类

from :  http://msdn.microsoft.com/zh-cn/library/vstudio/system.diagnostics.contracts.pureattribute(v=vs.110).aspx

 

意义是:指示一个类型或方法为纯类型或纯方法,即它不进行任何可视的状态更改。

 

纯类型或纯方法 ,我真他妈不知道是什么意思,我google了一下,有人说,你不知道,就不必要知道了。心道,艹。

 

google 至 http://stackoverflow.com/questions/592934/pure-functions-in-c-sharp

 

人家说: C# the language isn't, but .NET the framework may be.

还是may be , may be 就may be 吧。 也许有机会再认真的去理解,先放着吧。

posted @ 2013-02-06 15:20  张保维  阅读(445)  评论(0编辑  收藏  举报