Exemplo n.º 1
0
        private void AddParticipantData(ParticipantData pd)
        {
            if (this.d.ContainsKey(getKey(pd)))
            {
                throw new ArgumentException($"Failed adding participant. '{pd.p.name}' already exists");
            }

            this.d.Add(getKey(pd), pd);
        }
Exemplo n.º 2
0
 private int getKey(ParticipantData pd)
 {
     return(pd.p.GetHashCode());
 }