C# Single GetHashCode
Description
Single GetHashCode
returns the hash code for this instance.
Syntax
Single.GetHashCode
has the following syntax.
public override int GetHashCode()
Returns
Single.GetHashCode
method returns A 32-bit signed integer hash code.
Example
The following code shows how to use Single.GetHashCode
method.
//ww w . j a va 2 s . co m
using System;
public class MainClass{
public static void Main(String[] argv){
float f= 0.1F;
Console.WriteLine(f.GetHashCode());
}
}
The code above generates the following result.