check if ienumerable is empty vb code example
Example 1: check if ienumerable is empty c#
IEnumerable<T> enumerable = new List<int>();
if(!enumerable.Any())
{
throw new InvalidOperationException();
}
Example 2: vbscript check if string is empty
Dim strText = ""
'both of these return true
If Len(strText) = 0 Then
'empty
End If
If strText = "" Then
'empty
End If