Item 6: Understand the Relationships Among the Many Different Concepts of Equality(Effective C#)
摘要:
C# gives you numerous ways to test equality, but you need to consider providingyour own definitions for only two of them, along with supporting theanalogous interfaces. You never override the static Object.ReferenceEquals()and static Object.Equals() because they provide the correct tests, regardless 阅读全文
posted @ 2011-01-12 21:23 Ray Z 阅读(241) 评论(0) 推荐(0)