5 // Miguel de Icaza (miguel@ximian.com)
7 // (C) Ximian, Inc. http://www.ximian.com
12 public abstract class ValueType {
15 // ValueType constructor
17 protected ValueType ()
22 // True if this instance and o represent the same type
23 // and have the same value.
26 public override bool Equals (object o)
29 throw new ArgumentNullException ();
31 if (o.GetType() != this.GetType())
35 // Now implement bit compare here.
37 // TODO: Implement me!
42 // Gets a hashcode for this value type using the
43 // bits in the structure
46 public override int GetHashCode ()
51 // TODO: compute a hashcode based on the actual
58 // Stringified representation of this ValueType.
59 // Must be overriden for better results, by default
60 // it just returns the Type name.
62 public override string ToString ()
64 return GetType().FullName;