Adds an item to the list and returns the list pointer
Namespace: MSBuildCodeMetrics.CoreAssembly: MSBuildCodeMetrics.Core (in MSBuildCodeMetrics.Core.dll) Version: 0.1.4894.24375
public static List<T> AddItem<T>(
this List<T> list,
T value
)
public static List<T> AddItem<T>(
this List<T> list,
T value
)
<ExtensionAttribute>
Public Shared Function AddItem(Of T) (
list As List(Of T),
value As T
) As List(Of T)
<ExtensionAttribute>
Public Shared Function AddItem(Of T) (
list As List(Of T),
value As T
) As List(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static List<T>^ AddItem(
List<T>^ list,
T value
)
public:
[ExtensionAttribute]
generic<typename T>
static List<T>^ AddItem(
List<T>^ list,
T value
)
- T
- The list type
Return Value
Type:
List T the list
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
List T . 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).