ArrayExtensions.FirstNonNull<T>
Extension Method in ArrayExtensions
Declaration
public static T FirstNonNull<T>(this T[] array)
where T : classDescription
Returns the first non-null element in the array.
Type Parameters
| T | The type of the array. |
Parameters
| array | The array to get the element from. |
Returns
| T | The first non-null element in the array, or default(T) if all elements are null. |