Filter the string array which contains the value

How to Filter the string array which contains the value

@Sweety_Girl
lets assume following:
StringArray {“AA”,"AB,“BA”}
Filtertask: find all values starting withA
Assing:
left side arrResult / String()
right side: yourArray.Where(Function (x) x.StartsWith(“A”)).toArray

if it should be guaranteed that 1 Value has to be present - we can use the Single method
for existence check the count, Any, ALL methods can help

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.