예제 #1
0
 /// <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);
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
 /// <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> >();
 }