IGH_DataAccessUtil_FirstNonNullItemT Method |
Returns the index of the first non-null item in a list.
Namespace:
Grasshopper.Kernel
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax int Util_FirstNonNullItem<T>(
List<T> L
)
Function Util_FirstNonNullItem(Of T) (
L As List(Of T)
) As Integer
Parameters
- L
- Type: System.Collections.GenericListT
List to parse.
Type Parameters
- T
- Type of list
Return Value
Type:
Int32The index of the first non-null item or -1 if no object reference could be found.
See Also