// // System.ValueType.cs // // Author: // Miguel de Icaza (miguel@ximian.com) // // (C) Ximian, Inc. http://www.ximian.com // namespace System { public abstract class ValueType { // // ValueType constructor // protected ValueType () { } // // True if this instance and o represent the same type // and have the same value. // public override bool Equals (object o) { if (o == null) throw new ArgumentNullException (); if (o.GetType() != this.GetType()) return false; // TODO: // Now implement bit compare here. // TODO: Implement me! return false; } // // Gets a hashcode for this value type using the // bits in the structure // public override int GetHashCode () { if (this == null) return 0; // TODO: compute a hashcode based on the actual // contents. return 0; } // // Stringified representation of this ValueType. // Must be overriden for better results, by default // it just returns the Type name. // public override string ToString () { return GetType().FullName; } } }