Method CreateListResult
CreateListResult(Type, Object[])
Used to create an operation result that has multiple items.
Declaration
public static IList CreateListResult(Type type, Object[] allAssets)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type of the result objects. |
| Object[] | allAssets | The result objects. |
Returns
| Type | Description |
|---|---|
| IList | An IList of the resulting objects. |
CreateListResult<TObject>(Object[])
Used to create an operation result that has multiple items.
Declaration
public static TObject CreateListResult<TObject>(Object[] allAssets)
Parameters
| Type | Name | Description |
|---|---|---|
| Object[] | allAssets | The result objects. |
Returns
| Type | Description |
|---|---|
| TObject | An IList of the resulting objects converted to TObject. |
Type Parameters
| Name | Description |
|---|---|
| TObject | The type of the result. |