Finally, we now know enough to start talking about LINQ, which is an acronym for Language Integrated Query which is basically just a fancy way of doing queries and SQL-like things in C#. If you don’t know what SQL is, you should probably research about it a bit first, but, at a macro level, SQL (Structured Query Language) is just a language for interacting with databases.… Read more
Posts Tagged ‘lambda expression’
LINQ
Monday, May 24th, 2021Closures
Sunday, February 2nd, 2020Let’s consider the following Action:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
using System; namespace HelloWorld { public class Program { public static void Main() { int i = 0; Action a = () => i++; a(); a(); a(); Console. |
Anonymous methods
Saturday, February 1st, 2020Remember from the lesson lambda expressions that we can declare a method locally, without a name, and use it only in one place, where we declare it. This is an example of a lambda expression: