 | LinqExtensionsAddItemTSource Method |
Adds a single item to the collection.
Namespace:
CSScriptLib
Assembly:
CSScriptLib (in CSScriptLib.dll) Version: 1.3.2.0
Syntaxpublic static IEnumerable<TSource> AddItem<TSource>(
this IEnumerable<TSource> items,
TSource item
)
Parameters
- items
- Type: System.Collections.GenericIEnumerableTSource
The items. - item
- Type: TSource
The item.
Type Parameters
- TSource
- The type of the source.
Return Value
Type:
IEnumerableTSource[Missing <returns> documentation for "M:CSScriptLib.LinqExtensions.AddItem``1(System.Collections.Generic.IEnumerable{``0},``0)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also