コード例 #1
0
 // Removes the factor with the given index.
 // Adjusts the product accordingly.
 public void Remove(int index)
 {
     factors.Remove(index);
     UpdateProduct();
 }
コード例 #2
0
        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);
 }