select new clause : select new « LINQ « C# / CSharp Tutorial






using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Reflection;

public class MainClass{
   public static void Main(){
            var q = from m in typeof(int).GetMethods()
                    orderby m.Name
                    group m by m.Name into gb
                    select new {Name = gb.Key};
   }
}








22.62.select new
22.62.1.select new clause
22.62.2.Query a List or objects and create new objects
22.62.3.Partitions an array of words into groups according to the first letter of each word.
22.62.4.Constructor new object with select statement
22.62.5.Select new value