Skip to content

Instantly share code, notes, and snippets.

@PhiHuyHoang
Last active September 12, 2018 21:50
Show Gist options
  • Save PhiHuyHoang/383228f4a8875efde90180301c69293a to your computer and use it in GitHub Desktop.
Save PhiHuyHoang/383228f4a8875efde90180301c69293a to your computer and use it in GitHub Desktop.
method constructor function example C#
List<string> filtered = log.Filter(entry => entry.ToLower().Contains("apache")); // Actually this is LinQ, very cool. I'll talk about this later.
foreach(string s in filtered)
{
Console.WriteLine(s);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment