Click or drag to resize
Ranorex

AdapterListToSingleOrNullT Method

Returns the first item in the list or null if the list is empty.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
protected static T ListToSingleOrNull<T>(
	IList<T> list
)
where T : Adapter

Parameters

list
Type: System.Collections.GenericIListT
A list of adapters.

Type Parameters

T
The type of adapters in the list. The supplied type must inherit from Adapter, but most not be the Adapter type itself.

Return Value

Type: T
The first item in the list or null if the list is empty.
See Also