Click here to Skip to main content
15,561,948 members
Home / Discussions / C#
   

C#

 
GeneralRe: Still fighting with the terminologies of unicode vs. encoding Pin
PIEBALDconsult18-Dec-17 13:01
professionalPIEBALDconsult18-Dec-17 13:01 
QuestionAdvice on Partial View Pin
sunsher16-Dec-17 1:36
sunsher16-Dec-17 1:36 
AnswerRe: Advice on Partial View Pin
Richard MacCutchan16-Dec-17 1:47
mveRichard MacCutchan16-Dec-17 1:47 
QuestionConvert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
arnold_w14-Dec-17 2:39
arnold_w14-Dec-17 2:39 
AnswerRe: Convert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
Richard Deeming14-Dec-17 3:39
mveRichard Deeming14-Dec-17 3:39 
GeneralRe: Convert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
arnold_w14-Dec-17 4:15
arnold_w14-Dec-17 4:15 
GeneralRe: Convert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
Richard Deeming14-Dec-17 4:30
mveRichard Deeming14-Dec-17 4:30 
GeneralRe: Convert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
arnold_w14-Dec-17 5:14
arnold_w14-Dec-17 5:14 
Now it compiles perfectly:
        public static IEnumerable<Record> SortRecords(IEnumerable<Record> source)
        {
            IEnumerable<IEnumerable<Record>> groupT = System.Linq.Enumerable.GroupBy<Record, string, IEnumerable<Record>>
                (source,
                delegate(Record r) { return r.column1; },
                delegate(string key, IEnumerable<Record> items)
                {
                    IEnumerable<System.Linq.IGrouping<string, Record>> groupH = 
                        System.Linq.Enumerable.GroupBy<Record, string>(items, delegate(Record r) { return r.column2; });
                    return System.Linq.Enumerable.SelectMany<System.Linq.IGrouping<string, Record>, Record>(groupH,
                        delegate(System.Linq.IGrouping<string, Record> g)
                        { 
                             return g; 
                        });
                });
            return System.Linq.Enumerable.SelectMany<IEnumerable<Record>, Record>(groupT, delegate(IEnumerable<Record> g) { return g; });
        }

However, when I look at the SortedRecords array in the debugger I can't see the Records. It says:
collectionSelector null
resultSeelctor null
source null

How do I retrieve the sorted Records?
GeneralRe: Convert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
arnold_w14-Dec-17 6:19
arnold_w14-Dec-17 6:19 
SuggestionRe: Convert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
Richard Deeming14-Dec-17 7:17
mveRichard Deeming14-Dec-17 7:17 
GeneralRe: Convert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
BillWoodruff15-Dec-17 12:06
professionalBillWoodruff15-Dec-17 12:06 
GeneralRe: Convert .NET 4.5 method into .NET 2.0 using LinqBridge Pin
arnold_w15-Dec-17 21:29
arnold_w15-Dec-17 21:29 
QuestionNeed to understand work assigned to me Pin
nisss13-Dec-17 21:13
nisss13-Dec-17 21:13 
AnswerRe: Need to understand work assigned to me Pin
OriginalGriff13-Dec-17 21:36
mvaOriginalGriff13-Dec-17 21:36 
GeneralRe: Need to understand work assigned to me Pin
nisss14-Dec-17 1:11
nisss14-Dec-17 1:11 
GeneralRe: Need to understand work assigned to me Pin
OriginalGriff14-Dec-17 1:32
mvaOriginalGriff14-Dec-17 1:32 
GeneralRe: Need to understand work assigned to me Pin
nisss14-Dec-17 1:52
nisss14-Dec-17 1:52 
GeneralRe: Need to understand work assigned to me Pin
OriginalGriff14-Dec-17 2:06
mvaOriginalGriff14-Dec-17 2:06 
GeneralRe: Need to understand work assigned to me Pin
jschell14-Dec-17 9:52
jschell14-Dec-17 9:52 
AnswerRe: Need to understand work assigned to me Pin
Richard MacCutchan13-Dec-17 22:33
mveRichard MacCutchan13-Dec-17 22:33 
GeneralRe: Need to understand work assigned to me Pin
jschell14-Dec-17 9:51
jschell14-Dec-17 9:51 
GeneralRe: Need to understand work assigned to me Pin
Richard MacCutchan14-Dec-17 10:27
mveRichard MacCutchan14-Dec-17 10:27 
GeneralRe: Need to understand work assigned to me Pin
nisss14-Dec-17 21:39
nisss14-Dec-17 21:39 
GeneralRe: Need to understand work assigned to me Pin
nisss14-Dec-17 21:40
nisss14-Dec-17 21:40 
AnswerRe: Need to understand work assigned to me Pin
Gerry Schmitz14-Dec-17 6:26
mveGerry Schmitz14-Dec-17 6:26 

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.