[LINQ] Chapter 1 uses anonymous types

Anonymous types use the keyword var. In short, anonymous type means that you don't have to specify a specific type. Just write VaR, and CSharp will calculate the data type defined by the expression on the right. The CSharp compiler then specifies that the defined variable is of that type. When a type is specified, it is equivalent to a strong t ...

Posted by freshneco on Mon, 22 Nov 2021 08:03:26 +0100