Method GetItems
GetItems()
Returns an array of all the TItem
isntances
of this catalog.
Declaration
public TItem[] GetItems()
Returns
Type | Description |
---|---|
TItem[] | An array of all item definitions. |
Remarks
Keep in mind that this method allocates an array. If you want to avoid allocations, please consider using GetItems(ICollection<TItem>) instead.
GetItems(ICollection<TItem>)
Fills in the given target
collection with all
TItem
instances of this catalog and returns
their count.
The target
collection is cleared before being
populated.
Declaration
public int GetItems(ICollection<TItem> target = null)
Parameters
Type | Name | Description |
---|---|---|
ICollection<TItem> | target | The target container of all the
|
Returns
Type | Description |
---|---|
int | The number of |