/// <summary> /// Initializes a new instance of the <see cref="TransientGroup{T}"/> class. /// </summary> /// <param name="capacity">The capacity.</param> public TransientGroup(int capacity) { _members = new IndexableSet <T>(capacity); }
/// <summary> /// Initializes a new instance of the <see cref="TransientGroup{T}"/> class. /// </summary> /// <param name="members">The members.</param> public TransientGroup(IEnumerable <T> members) { Ensure.ArgumentNotNull(members, "members"); _members = new IndexableSet <T>(members); }
/// <summary> /// Initializes a new instance of the <see cref="Selections"/> class. /// </summary> public Selections() { _selected = _emptyGroup; _selectableUnits = new IndexableSet <IUnitFacade>(); _groups = new Dictionary <int, IGrouping <IUnitFacade> >(); }