예제 #1
0
        static void Main(string[] args)
        {
            Human dwarf = new Human("Amir", "Amiri", new DateTime(2010, 9, 3), 2.5);

            Console.WriteLine(dwarf.FirstName.GetHashCode());
            Console.WriteLine(dwarf.LastName.GetHashCode());
            Console.WriteLine(dwarf.Height.GetHashCode());
            Console.WriteLine(dwarf.BirthDate.GetHashCode());
            Console.WriteLine(dwarf.GetHashCode());
            //93033477
        }
예제 #2
0
 public static int Hash(Human h1)
 {
     return(h1.GetHashCode());
 }