GetHashCode

Gridline.GetHashCode method

Returns a hash code value for the instance of the Gridline class.

public override int GetHashCode()

Return Value

returns a hash code value for this object.

Examples

Shows how to get hash code of a gridline.

var gridline1 = new Gridline();
var gridline2 = new Gridline();

// the hash code of a gridline is based on internal GUID field. 
Console.WriteLine("Gridline 1 Hash Code: {0}", gridline1.GetHashCode());
Console.WriteLine("Gridline 2 Hash Code: {0}", gridline2.GetHashCode());

See Also