public void SortUnits() { HostingUnitCollection.Sort( delegate(HostingUnit i, HostingUnit j) { return(i.GetAnnualBusyDays().CompareTo(j.GetAnnualBusyDays())); }); }
public Host(int id, int x) { hostkey = id; HostingUnit h = new HostingUnit(); for (int i = 0; i < x; i++) { HostingUnitCollection.Add(h); } }