Click here to Skip to main content
15,562,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Confusion about LINQ Grouping Pin
Dave Kreskowiak16-Sep-21 3:25
mveDave Kreskowiak16-Sep-21 3:25 
GeneralRe: C# Confusion about LINQ Grouping Pin
Mou_kol16-Sep-21 7:30
Mou_kol16-Sep-21 7:30 
GeneralRe: C# Confusion about LINQ Grouping Pin
Mou_kol15-Sep-21 21:39
Mou_kol15-Sep-21 21:39 
QuestionC# How to convert my List<T> to Pivot datatable Pin
Mou_kol14-Sep-21 7:00
Mou_kol14-Sep-21 7:00 
AnswerRe: C# How to convert my List<T> to Pivot datatable Pin
Richard Deeming14-Sep-21 7:56
mveRichard Deeming14-Sep-21 7:56 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
BillWoodruff14-Sep-21 20:29
professionalBillWoodruff14-Sep-21 20:29 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Mou_kol14-Sep-21 22:05
Mou_kol14-Sep-21 22:05 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Mou_kol14-Sep-21 23:50
Mou_kol14-Sep-21 23:50 
Sir i am using VS2013 and .net version 4.5.2.

so when i copy your code in your project then i am getting error for these below line which may work in .net upper version.

C#
var tupleType = Type.GetType($"System.Tuple`{groupColumns.Count}");
 var groupByExpression = Expression.Lambda<Func<T, System.Runtime.CompilerServices.ITuple>>(body, p);
 
 foreach (var group in source.GroupBy(groupByExpression.Compile()))
 {
 }


sir can you please provide a code which may compile and work in .net version 4.5.2 using VS2013.

thank you.
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Richard Deeming15-Sep-21 0:15
mveRichard Deeming15-Sep-21 0:15 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Mou_kol15-Sep-21 0:54
Mou_kol15-Sep-21 0:54 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Richard Deeming15-Sep-21 1:38
mveRichard Deeming15-Sep-21 1:38 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Mou_kol15-Sep-21 4:49
Mou_kol15-Sep-21 4:49 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Richard Deeming15-Sep-21 5:13
mveRichard Deeming15-Sep-21 5:13 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Mou_kol15-Sep-21 21:37
Mou_kol15-Sep-21 21:37 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Pete O'Hanlon15-Sep-21 7:52
mvaPete O'Hanlon15-Sep-21 7:52 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
BillWoodruff15-Sep-21 9:52
professionalBillWoodruff15-Sep-21 9:52 
GeneralRe: C# How to convert my List<T> to Pivot datatable Pin
Mou_kol15-Sep-21 21:20
Mou_kol15-Sep-21 21:20 
QuestionHow to store Pivot data into List<T> Pin
Mou_kol14-Sep-21 6:53
Mou_kol14-Sep-21 6:53 
AnswerRe: How to store Pivot data into List<T> Pin
Richard Deeming14-Sep-21 7:04
mveRichard Deeming14-Sep-21 7:04 
GeneralRe: How to store Pivot data into List<T> Pin
Mou_kol14-Sep-21 7:29
Mou_kol14-Sep-21 7:29 
GeneralRe: How to store Pivot data into List<T> Pin
Richard Deeming14-Sep-21 7:49
mveRichard Deeming14-Sep-21 7:49 
GeneralRe: How to store Pivot data into List<T> Pin
Mou_kol15-Sep-21 0:14
Mou_kol15-Sep-21 0:14 
GeneralRe: How to store Pivot data into List<T> Pin
Richard Deeming15-Sep-21 0:17
mveRichard Deeming15-Sep-21 0:17 
QuestionActive step-two verfication telegram with c# Pin
Nader Rostamkhani8-Sep-21 7:22
Nader Rostamkhani8-Sep-21 7:22 
Rant[REPOST] Active step-two verfication telegram with c# Pin
Richard Deeming8-Sep-21 7:33
mveRichard Deeming8-Sep-21 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.