Here are the examples of the csharp api System.Collections.Generic.List.Remove(WeightedItem) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : MultipleSelector.cs
with MIT License
from ldqk
with MIT License
from ldqk
internal List<T> Select(int count)
{
Validate(ref count);
var items = new List<WeightedItem<T>>(WeightedSelector.Items);
var resultList = new List<T>();
do
{
var item = WeightedSelector.Option.AllowDuplicate ? BinarySelect(items) : LinearSelect(items);
resultList.Add(item.Value);
if (!WeightedSelector.Option.AllowDuplicate)
{
items.Remove(item);
}
} while (resultList.Count < count);
return resultList;
}
19
Source : WeightedSelector.cs
with MIT License
from ldqk
with MIT License
from ldqk
public void Remove(WeightedItem<T> item)
{
_isAddedreplacedulativeWeights = true;
Items.Remove(item);
}