// these methods are used for generating // unique Ids to identify the EqualPoints "conflicts" // and to resolve them... // since the ranking and points are always recalculated, // we need this rather clumsy rationale... public static string IdRanking(SortedDictionary <string, bool> availRounds, RankingDataItem item) { string str = ""; foreach (string key in availRounds.Keys) { if (availRounds[key]) { str += key + "|"; } } return(str + "|" + item.Data); // uses the ToString Method to identify it }
public static string IdRanking(List <KeyValuePair <string, bool> > availRounds, RankingDataItem item) { return(IdRanking(RankingData.MakeDic(availRounds), item)); }