Answers for "search string in string c#"

C#
0

c# search string array

string [] arr = {"One","Two","Three"};
       var target = "One";
       var results = Array.FindAll(arr, s => s.Equals(target));
Posted by: Guest on August-07-2020
1

c# find substring in string

string fullName = "John Doe";
bool nameInFullName = fullName.Contains("John");
// nameInFullName is true
Posted by: Guest on September-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language