ListExtensions.LastNonNull<T>
Extension Method in ListExtensions
Declaration
public static T LastNonNull<T>(this List<T> list)
where T : classDescription
Returns the last non-null item in the list.
Type Parameters
| T | The type of the list. |
Parameters
| list | The list to get the item from. |
Returns
| T | The last non-null item in the list, or default(T) if all items are null. |