public override int GetHashCode() { int constant = 7; int hashcode = constant * mKind.GetHashCode(); hashcode += constant * mName.GetHashCode(); if (mType != null) { hashcode += constant * mType.GetHashCode(); } return(hashcode); }