Method GetHashCode
GetHashCode()
Gets the HashCode for the tag.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | HashCode for the tag. |
Overrides
System.Object.GetHashCode()
Examples
The following example prints Hashcode of tag.
Tag tag1 = new Tag("Alpha");
Console.WriteLine("Hashcode of {0} is {1}", tag1.ToString(), tag1.GetHashCode());