CSharp examples for System.Collections.Generic:IEnumerable
Is IEnumerable Null Or Empty
using System.Threading.Tasks; using System.Text; using System.Linq; using System.Collections.Generic; using System;/*from w ww .ja va 2 s . co m*/ public class Main{ public static bool IsNullOrEmpty<T>(this IEnumerable<T> coll) { return (coll == null || !coll.Any()); } }