Understanding Generic Anonymous Methods and Lambda Expressions in C# View Article Information Posted Date: 1. May 2014 Author: Anil Sharma Categories: .Net Framework, LINQ, C Sharp Keywords: Generic Anonymous Methods, Anonymous Methods, Lambda Expressions, Lambda Expressions in C#, Lambda Expressions Tutorials Anonymous methods behave like regular methods except that they are unnamed. Anonymous Methods were introduced as an alternative to defining delegates that did very simple tasks, where full-blown methods amounted to more than just extra typing. Anonymous methods also evolved further into Lambda Expressions, which are even shorter methods. [Continue Reading]
Understanding and Programming with Anonymous Types in C# View Article Information Posted Date: 1. May 2014 Author: Anil Sharma Categories: .Net Framework, LINQ, C Sharp Keywords: Anonymous Types, Lamba Expressions, Anonymous Methods, Generic Anonymous Methods Anonymous types use the keyword var. Var is also used in Pascal and Delphi today, but var in Delphi is like ByRef in Visual Basic (VB) or ref in C#. The var introduced with .NET 3.5 indicates an anonymous type. Now, our VB friends are going to think, “Well, we have had variants for years in VB.” But var is not a dumbing down and clogging up of C#. Anonymous types are something new and necessary. [Continue Reading]