// // System.ValueType.cs // // Author: // Miguel de Icaza (miguel@ximian.com) // // (C) Ximian, Inc. http://www.ximian.com // using System.Runtime.CompilerServices; 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. // [MethodImplAttribute(MethodImplOptions.InternalCall)] public extern override bool Equals (object o); // // Gets a hashcode for this value type using the // bits in the structure // [MethodImplAttribute(MethodImplOptions.InternalCall)] public extern override int GetHashCode (); // // 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; } } }