Item 9: Avoid Conversion Operators in Your APIs(Effective C#)
摘要:
Conversion operators introduce a form of substitutability that causes problems in your code. You’re indicating that, in all cases, users can reasonably expect that another class can be used in place of the one you created. When this substituted object is accessed, you cause clients to work with temp 阅读全文
posted @ 2011-01-16 21:01 Ray Z 阅读(214) 评论(0) 推荐(0)
浙公网安备 33010602011771号