Creates and returns a hash code for this instance.
Returns the hash code based on the name.
The hash code is created from the name of this instance, so the return value is the same as if the GetHashCode method were called on the value of the Name property.