public int AddDriver(GangsDriver driver) { if (this.driverSet.Count >= maxDriverSize) throw new IndexOutOfRangeException(); GangsDriverSet tmp = new GangsDriverSet(driver); this.driverSet.Add(tmp); return this.driverSet.IndexOf(tmp); }
public int AddDriver(GangsDriver driver) { if (this.driverSet.Count >= maxDriverSize) { throw new IndexOutOfRangeException(); } GangsDriverSet tmp = new GangsDriverSet(driver); this.driverSet.Add(tmp); return(this.driverSet.IndexOf(tmp)); }