March 2004
Intermediate to advanced
560 pages
26h 47m
English
public class Object { // Constructors public Object (); // Methods public virtual bool Equals (object obj); CF public static bool Equals (object objA, object objB); ~object () ; public virtual int GetHashCode (); public Type GetType (); protected object MemberwiseClone (); CF public static bool ReferenceEquals (object objA, object objB); public virtual string ToString (); }
|
BA The static Equals method on Object was a relatively late addition to the class. We added it only after seeing a large number of utility versions of the same code. The common problem nearly everyone had with the instance version of Equals is that you had to make sure the value was not null before calling the Equals method. So to check to see if instances ... |
Read now
Unlock full access