Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ItemList{T}"/> class.
        /// Initializes a new instance of the ItemList class.
        /// </summary>
        /// <param name="masterList">
        /// The master list that this list points into.
        /// </param>
        /// <param name="firstItem">
        /// The first item in the master list.
        /// </param>
        /// <param name="lastItem">
        /// The last item in the master list.
        /// </param>
        public ItemList(MasterList <T> masterList, Node <T> firstItem, Node <T> lastItem)
        {
            Param.RequireNotNull(masterList, "masterList");
            Param.RequireNotNull(firstItem, "firstItem");
            Param.RequireNotNull(lastItem, "lastItem");

            this.masterList = masterList.AsReadWrite;
            this.firstItem  = firstItem;
            this.lastItem   = lastItem;
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemList{T}"/> class.
 /// Initializes a new instance of the ItemList class.
 /// </summary>
 /// <param name="masterList">
 /// The master list that this list points into.
 /// </param>
 public ItemList(MasterList <T> masterList)
 {
     Param.RequireNotNull(masterList, "masterList");
     this.masterList = masterList;
 }