ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods

HasItems

Determina si un Listado Tiene Items.

Source

public static bool HasItems<T>(this List<T> source) {
	return (source != null && source.Count > 0);
}

Example

if(Lista.HasItems()){
	//your code
}

Author: UlisexXx

Submitted on: 21 nov. 2023

Language: csharp

Type: System.Collections.Generic

Views: 1239