File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed 
snippets/csharp/VS_Snippets_VBCSharp/CsCsrefQueryKeywords/CS Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ from student in students
2626                group student  by student . Last [ 0 ] ; 
2727            //</snippet10> 
2828
29- 
30-             
3129            // This query could be easily modified to group by the entire last name. 
3230            //<Snippet11> 
3331            // Group students by the first letter of their last name 
@@ -39,7 +37,6 @@ orderby g.Key
3937                select  g ; 
4038            //</snippet11> 
4139            Console . WriteLine ( "The SimpleGroup method produces this output:\r \n " ) ; 
42- 
4340
4441           //<snippet12> 
4542           // Iterate group items with a nested foreach. This IGrouping encapsulates 
@@ -56,10 +53,9 @@ orderby g.Key
5653            } 
5754            //</snippet12>            
5855
59-             
6056            //<Snippet13> 
61-            // Same as previous example except we use the entire last name as a key. 
62-            // Query variable is an IEnumerable<IGrouping<string, Student>> 
57+              // Same as previous example except we use the entire last name as a key. 
58+              // Query variable is an IEnumerable<IGrouping<string, Student>> 
6359            var  studentQuery3  = 
6460                from  student  in  students 
6561                group student  by student . Last ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments