Answers for "check that IEnumerable is not empty"

C#
0

check that IEnumerable is not empty

public static class Utils {
    public static bool IsAny<T>(this IEnumerable<T> data) {
        return data != null && data.Any();
    }
}
Posted by: Guest on March-27-2022

Code answers related to "check that IEnumerable is not empty"

C# Answers by Framework

Browse Popular Code Answers by Language