public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + _role.GetHashCode(); hash = hash * 23 + (_leader == null ? 0 : _leader.GetHashCode()); return hash; } }