5 // Miguel de Icaza (miguel@ximian.com)
7 // (C) Ximian, Inc. http://www.ximian.com
9 // This should probably be implemented in IL instead of C#, to
10 // use internalcalls to get its hands on the underlying Type
14 using System.Runtime.CompilerServices;
21 // Compares this object to the specified object.
22 // Returns true if they are equal, false otherwise.
24 public virtual bool Equals (object o)
30 // Compares two objects for equality
32 public static bool Equals (object a, object b)
49 // Initializes a new instance of the object class.
63 // Returns a hashcode for this object. Each derived
64 // class should return a hash code that makes sense
65 // for that particular implementation of the object.
67 public virtual int GetHashCode ()
73 // Returns the Type associated with the object.
75 public Type GetType ()
77 return new MonoType (this);
81 // Shallow copy of the object.
83 [MethodImplAttribute(MethodImplOptions.InternalCall)]
84 protected extern object MemberwiseClone ();
87 // Returns a stringified representation of the object.
88 // This is not supposed to be used for user presentation,
89 // use Format() for that and IFormattable.
91 // ToString is mostly used for debugging purposes.
93 public virtual string ToString ()
95 return GetType().FullName;
99 // Tests whether a is equal to b.
100 // Can not figure out why this even exists
102 public static bool ReferenceEquals (object a, object b)