Javatpoint Logo
Javatpoint Logo

LINQ to String Array

LINQ to String Array means writing the LINQ queries on string array to get the required data. If we use LINQ queries on string arrays, we can get the required elements easily without writing the much code.

Syntax of LINQ to String Array

Here is the syntax of writing the LINQ queries on string Arrays to get the required element from array collection.

In the above syntax, we have written the LINQ query to get the data from the "arr" string array.

Example of LINQ to String Array

Here is the example of LINQ to String Array to get the elements from the string array sequence where the name starts with "S".

OUTPUT:

LINQ to String Array/>

<hr/>
<div class= Next TopicLINQ to Int Array




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA