Code: Select all
public static T Find<T>(
T[] array,
Predicate<T> match
)
Code: Select all
string [] arr = {"One","Two","Three"};
var results = Array.FindAll(arr, s => s.Equals("One"));
Code: Select all
local aString as string[]
aString := <string>{ "one", "two", "three", "four" }
var cFind := Array.Find( aString, {|c| c == "two" } )