Method AddTo
AddTo<TItem, TCollection>(TItem, ISourceList<TCollection>)
Declaration
public static TItem AddTo<TItem, TCollection>(this TItem instance, ISourceList<TCollection> parent) where TItem : TCollection
Parameters
| Type |
Name |
Description |
| TItem |
instance |
|
| ISourceList<TCollection> |
parent |
|
Returns
Type Parameters
| Name |
Description |
| TItem |
|
| TCollection |
|
AddTo<TItem, TCollection>(TItem, ICollection<TCollection>)
Declaration
public static TItem AddTo<TItem, TCollection>(this TItem instance, ICollection<TCollection> collection) where TItem : TCollection
Parameters
| Type |
Name |
Description |
| TItem |
instance |
|
| ICollection<TCollection> |
collection |
|
Returns
Type Parameters
| Name |
Description |
| TItem |
|
| TCollection |
|