Answers for "c# string .contains against empty string returns"

C#
0

c# string .contains against empty string returns

string toTest = "Hello World!";
bool containsResult = toTest.Contains(string.Empty); // containsResult = true
Posted by: Guest on August-23-2021

Code answers related to "c# string .contains against empty string returns"

C# Answers by Framework

Browse Popular Code Answers by Language