Method SetCount
SetCount(int, Func<object>)
Changes the number of elements in the Items.
public void SetCount(int newCount, Func<object> 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.