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)); }
public GangsDriverSet(GangsDriver driver) { this.driver = driver; this.thread = null; }