ArrayExtensions.LastNonNull<T>
Extension Method in ArrayExtensions
Declaration
public static T LastNonNull<T>(this T[] array)
where T : class
Description
Returns the last 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 last non-null element in the array, or default(T) if all elements are null. |