Exemplo n.º 1
0
    /// <summary>
    /// Increases by one the number of matches according to the gender, and removes itself and any previous matches
    /// </summary>
    private void IncreaseMatchesAndRemove()
    {
        for (int i = 0; i < previousMatches.Count; i++)
        {
            Matching match = previousMatches[i];

            match.IncreaseByMatch(this);
            match.previousMatches.Remove(this);

            this.previousMatches.RemoveAt(i--);
        }
    }