Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# list string not empty

using System.Linq; // Remember to include this at the top

var myStringList = new List<string> {"hi", "there"};

if (myStringList.Any()) {
   return "The string list is not empty";
}
 
PREVIOUS NEXT
Tagged: #list #string #empty
ADD COMMENT
Topic
Name
6+6 =