二进制输出

    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
    { }

 

posted @ 2015-05-08 13:40  江境纣州  阅读(54)  评论(0编辑  收藏  举报