 | 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
Syntaxprotected static T ListToSingleOrNull<T>(
IList<T> list
)
where T : Adapter
Protected Shared Function ListToSingleOrNull(Of T As Adapter) (
list As IList(Of T)
) As T
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:
TThe first item in the list or
null if the list is empty.
See Also