CollectionUtilAppendToT Method |
Append an item to an existing enumerable, returning a new List.
Namespace:
Nova.Utilities
Assembly:
Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax public static List<T> AppendTo<T>(
IEnumerable<T> listA,
T itemB
)
where T : class
Parameters
- listA
- Type: System.Collections.GenericIEnumerableT
The existing enumerable. - itemB
- Type: T
The item to be appended.
Type Parameters
- T
- The generic type of the enumerable and item.
Return Value
Type:
ListTThe new List.
See Also