Int32.GetHashCode : Int32 « System « C# / C Sharp by API






Int32.GetHashCode

 
using System;
using System.Collections.Generic;
using System.Text;

class Program {
    static void Main(string[] args) {
        Console.WriteLine(12.GetHashCode());
        Console.WriteLine(12.Equals(23));
        Console.WriteLine(12.GetType().BaseType);
        Console.WriteLine(12.ToString());
        Console.WriteLine(12); // ToString() called automatically.

    }
}

   
  








Related examples in the same category

1.Int32 == Int32
2.Int32.Equals(23)
3.Int32.GetType()
4.Int32.Parse(String value)
5.UInt32.MinValue
6.Int32.ToString
7.Int32.ToString(String format,CultureInfo info)