Click or drag to resize

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
)

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