Csharp / C# linq Select Anonymous Types

Csharp / C# linq Select Anonymous Types

Example:

using System; using System.Linq;

class LinqSelectAnonymous { static void Main(string[] args) {

string[] strActuals = { “Being”, “Human” };

var result = from str in strActuals select new { UPPER = str.ToUpper(), lower = str.ToLower() };

foreach (var str in result) { [...]