ExtensionMethodsAddItem Method (IListVariable, Variable) |
Adds an
Variable in the collection. if the variable of the same Name exists already, the value of that variable will be replaced.
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static void AddItem(
this IList<Variable> collection,
Variable item
)
<ExtensionAttribute>
Public Shared Sub AddItem (
collection As IList(Of Variable),
item As Variable
)
public:
[ExtensionAttribute]
static void AddItem(
IList<Variable^>^ collection,
Variable^ item
)
[<ExtensionAttribute>]
static member AddItem :
collection : IList<Variable> *
item : Variable -> unit
Parameters
- collection
- Type: System.Collections.GenericIListVariable
The collection of NameValuePair. - item
- Type: Hummingbird.TestFrameworkVariable
The item to be inserted.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListVariable. 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