Method SetCount
SetCount(int, Func<TItem>)
Changes the number of elements in the Items.
void SetCount(int newCount, Func<TItem> createItem)
Parameters
Remarks
If collection has more items than specified in newCount
,
these items are removed. If collection has less items, new items are created
using createItem
function.