reflection_name_GetHashCode
 
Code :

using System;
using System.ComponentModel;
//csc reflection_name_GetHashCode.cs
using System.Reflection;
namespace ConsoleApplication1
{
interface Iparty { void Print(); }
class A :Iparty
{

private int n1; private double D1;
public A() { Console.WriteLine("constructor"); }
~A() { Console.WriteLine("desstructor"); }
public void method(int n1, double d1)
{
Console.WriteLine("Console Write" );
this.n1 = n1;
this.D1 = d1;
}
public void Print() { }
}
class MainClass
{

public static void Main(string[] args)
{
MemberInfo[] m1 = typeof(A).GetMembers();
A a = new A();
a.method(12, 12.45);
int i = 0;
foreach (MemberInfo m in m1)
{
//A hash code is a numeric value
// to identify an object in a hash-based collection
Console.WriteLine(i + " member name " + m.Name + " | GetHashcode |" + m.GetHashCode());
i++;
}
Console.ReadLine();
}
}
}