Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# string .contains against empty string returns

string toTest = "Hello World!";
bool containsResult = toTest.Contains(string.Empty); // containsResult = true
 
PREVIOUS NEXT
Tagged: #string #empty #string #returns
ADD COMMENT
Topic
Name
9+7 =