Answers for "find a string in array c#"

C#
1

find word in string array c#

Array.FindIndex(list, s => s.Equals(word));
Posted by: Guest on December-07-2021
-1

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

C# Answers by Framework

Browse Popular Code Answers by Language