二进制输出
class Program { static void Main(string[] args) { someclass x = new someclass(); int hashCode = RuntimeHelpers.GetHashCode(x) & Int32.MaxValue; Console.WriteLine(Convert.ToString(Int32.MaxValue, 2)); Console.WriteLine(Convert.ToString(RuntimeHelpers.GetHashCode(x), 2)); Console.WriteLine(Convert.ToString(hashCode, 2)); Console.Read(); } } class someclass { }