Click or drag to resize

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
)

Parameters

L
Type: System.Collections.GenericListT
List to parse.

Type Parameters

T
Type of list

Return Value

Type: Int32
The index of the first non-null item or -1 if no object reference could be found.
See Also