RuntimeHelpers.GetHashCode generates a hash code. : RuntimeHelpers « Development « C# / CSharp Tutorial






using System;
using System.Runtime.CompilerServices;

class Program
{
    static void Main(string[] args)
    {
        int i = 1;

        int hash = RuntimeHelpers.GetHashCode(i);

        Console.WriteLine("The Hash if i is : " + hash);

    }
}








14.44.RuntimeHelpers
14.44.1.RuntimeHelpers.GetHashCode generates a hash code.