ExtensionMethodsGetItem Method |
Gets the item from the current List by its name
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static Variable GetItem(
this IEnumerable<Variable> collection,
string name
)
<ExtensionAttribute>
Public Shared Function GetItem (
collection As IEnumerable(Of Variable),
name As String
) As Variable
public:
[ExtensionAttribute]
static Variable^ GetItem(
IEnumerable<Variable^>^ collection,
String^ name
)
[<ExtensionAttribute>]
static member GetItem :
collection : IEnumerable<Variable> *
name : string -> Variable
Parameters
- collection
- Type: System.Collections.GenericIEnumerableVariable
The collection of the NameValuePair. - name
- Type: SystemString
The name of the NameValuePair
Return Value
Type:
Variable
The
Variable object which its Name is specified by the name parameter.
If the object is not found, a
value will be returned.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableVariable. 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