Skip to content

Instantly share code, notes, and snippets.

@shassaan
Created November 3, 2020 12:23
Embed
What would you like to do?
Creating List and Querying
IList<string> stringList = new List<string>()
{
"C# Tutorials",
"TS Tutorials",
"Learn python",
"nodejs Tutorials" ,
"adonisjs"
}; // LINQ Query Syntax
var result = stringList.Where(s => s.Contains("Tutorials"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment