Thursday, March 20, 2008

ICloneable, IEquatable , IComparable

ICloneable:

A nice read on on deep , shallow copy and the interface implementation

IEquatable

IEquatable.Equals vs. System.Object.Equals

The IEquatable.Equals method is very similar to Object.Equals. However, IEquatable.Equals is type-safe and generic—requiring no boxing and unboxing.


IEquatable vs. IComparable

At first glance, the IEquatable interface appears very similar to the IComparable interface. But, whereas IEquatable returns a bool representing only whether the instances are equal or not, IComparable returns an inthow the instances differ—whether smaller, equal or larger. indicating

Via - CSharp-Online

ASP.NET
3/20/2008 7:29:40 PM (GMT Standard Time, UTC+00:00)  #  Comments [0]