Method GetDetails
GetDetails()
Returns an array of all the BaseDetail instances of this CatalogItem instance.
Declaration
public BaseDetail[] GetDetails()
Returns
Type | Description |
---|---|
BaseDetail[] | An array of all the details. |
Remarks
Keep in mind that this method allocates an array. If you want to avoid allocations, please consider using GetDetails(ICollection<BaseDetail>) instead.
GetDetails(ICollection<BaseDetail>)
Fills in the given target
collection with all the
BaseDetail instance of this CatalogItem
instance.
The target
collection is cleared before being
populated.
Declaration
public int GetDetails(ICollection<BaseDetail> target)
Parameters
Type | Name | Description |
---|---|---|
ICollection<BaseDetail> | target | The target container of all the BaseDetail instances. |
Returns
Type | Description |
---|---|
int |