Skip to content

Instantly share code, notes, and snippets.

@shassaan
Created November 3, 2020 12:23
Show Gist options
  • Save shassaan/c0805da84d89d5edc4afd3bc33b40aac to your computer and use it in GitHub Desktop.
Save shassaan/c0805da84d89d5edc4afd3bc33b40aac to your computer and use it in GitHub Desktop.
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