RanorexRanorex Documentation
ListToSingleOrNull<(Of <(T>)>) Method (list)
NamespacesRanorexAdapterListToSingleOrNull<(Of <(T>)>)(IList<(Of <(T>)>))
Returns the first item in the list or null if the list is empty.
Declaration Syntax
C#Visual BasicVisual C++
protected internal static T ListToSingleOrNull<T>(
	IList<T> list
)
where T : Adapter
Protected Friend Shared Function ListToSingleOrNull(Of T As Adapter) ( _
	list As IList(Of T) _
) As T
protected public:
generic<typename T>
where T : Adapter
static T ListToSingleOrNull(
	IList<T>^ list
)
Generic Template Parameters
T
The type of adapters in the list. The supplied type must inherit from Adapter, but most not be the Adapter type itself.
Parameters
list (IList<(Of <(T>)>))
A list of adapters.
Return Value
The first item in the list or null if the list is empty.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.1.15734 (3.2.1.15734)