C# Guid GetHashCode
Description
Guid GetHashCode
returns the hash code for this instance.
Syntax
Guid.GetHashCode
has the following syntax.
public override int GetHashCode()
Returns
Guid.GetHashCode
method returns The hash code for this instance.
Example
The following example demonstrates GetHashCode method.
/*from ww w . j ava 2 s . c om*/
using System;
class Sample
{
public static void Main()
{
Guid guidX = new Guid("{CA123456-ED11-11CE-BACD-00AA0057B223}");
Console.WriteLine(guidX.GetHashCode());
}
}
The code above generates the following result.