示例#1
0
        public void AddBonus(int value, string condition = "")
        {
            var bonus = new Bonus {
                Value = value, Condition = condition
            };

            Bonuses = Bonuses.Union(new[] { bonus });
        }