check that IEnumerable is not empty

49

check that IEnumerable is not empty -

public static class Utils {
    public static bool IsAny<T>(this IEnumerable<T> data) {
        return data != null && data.Any();
    }
}

Comments

Submit
0 Comments