示例#1
0
 // Removes the factor with the given index.
 // Adjusts the product accordingly.
 public void Remove(int index)
 {
     factors.Remove(index);
     UpdateProduct();
 }
        public void TestRemoveNotExisting()
        {
            IndexedList<string, SiteLink> list = new IndexedList<string, SiteLink>(siteLink => siteLink.SiteId) {
                new SiteLink("enwiki", "Foo")
            };

            Assert.False(list.Remove("xxwiki"));
        }
示例#3
0
 // Removes the factor with the given index.
 // Adjusts the time rate accordingly.
 public void Remove(int index)
 {
     factors.Remove(index);
     UpdateTimeRate();
 }
示例#4
0
 public void Remove(int index)
 {
     list.Remove(index);
 }