public override int GetHashCode() { unchecked { int hashCode = EndPoint != null?EndPoint.GetHashCode() : 0; hashCode = (hashCode * 397) ^ Protocol.GetHashCode(); hashCode = (hashCode * 397) ^ IsPersistent.GetHashCode(); hashCode = (hashCode * 397) ^ IdleTimeoutMs.GetHashCode(); return(hashCode); } }
public String Values() { return(String.Format("{0}, {1}, {2}, '{3}', {4}, '{5}', {6}, {7}, {8}, {9}, {10}, {11}, {12}, {13}, {14}, {15}, {16}, {17}, {18}, {19}, {20}, {21}, {22}", ContinentObjectId, ContestedMission, Coordinates, DisplayName.Replace("'", @"\'"), Image, MapFileName.Replace("'", @"\'"), MinLevel, MaxLevel, MaxPlayers, MinVersion, MaxVersion, Objective, OwningFaction, PositionX.ToString(CultureInfo.InvariantCulture), PositionZ.ToString(CultureInfo.InvariantCulture), Rotation.ToString(CultureInfo.InvariantCulture), IsPersistent.ToString().ToUpper(), IsTown.ToString().ToUpper(), IsClientOnly.ToString().ToUpper(), IsArena.ToString().ToUpper(), IsPlayCreateSounds.ToString().ToUpper(), IsDropCommodities.ToString().ToUpper(), IsDropBrokenItems.ToString().ToUpper())); }