Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

check that IEnumerable is not empty

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

PREVIOUS NEXT
Code Example
Csharp :: c# Windows Forms screenshot 
Csharp :: c# servercertificatevalidationcallback 
Csharp :: delete an object c# 
Csharp :: c# string .contains against empty string returns 
Csharp :: ismirrored c# 
Csharp :: c# sha512 salt 
Csharp :: C# Associativity of Operators 
Csharp :: c# write to registry hkey_current_user 
Csharp :: query to linq converter online 
Csharp :: c# extend array 
Csharp :: unity next level trigger 
Csharp :: how to change samesite=lax to samesite=none in asp.net 
Csharp :: reflection assemblies gettypes 
Csharp :: character stay in ground unity 3d 
Csharp :: new guid c# always returns 0 
Csharp :: what is C# 
Csharp :: If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. 
Csharp :: trigger checkbox combobox wpf 
Csharp :: Post and Pre Increment operators in C# 
Csharp :: C#$ 
Csharp :: Delegates in UntiyC# 
Csharp :: ip validation .net core 
Csharp :: 2d movement unity 
Csharp :: ? in c# 
Csharp :: how to save checkbox value in database in c# 
Csharp :: how to use external resource.resx file in c# 
Csharp :: list remove positions c# 
Csharp :: draw table in console c# 
Csharp :: unity NetworkBehaviour the type or namespace could not be found 
Csharp :: build a project from dotnet using cli 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =