C# TypeInfo GetHashCode
Description
TypeInfo GetHashCode
Returns the hash code for this instance.
Syntax
TypeInfo.GetHashCode
has the following syntax.
public override int GetHashCode()
Returns
TypeInfo.GetHashCode
method returns The hash code for this instance.
Example
using System;//ww w .j av a 2 s. co m
using System.Security;
using System.Reflection;
class FieldsSample
{
public static void Main()
{
Console.WriteLine(typeof(System.Windows.Forms.Button).GetHashCode());
}
}
The code above generates the following result.