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
PIEBALDconsult16-Dec-17 7:04
professionalPIEBALDconsult16-Dec-17 7:04 
GeneralRe: Still fighting with the terminologies of unicode vs. encoding Pin
JustWatchLittle 16-Dec-17 7:07
professionalJustWatchLittle 16-Dec-17 7:07 
SuggestionRe: Still fighting with the terminologies of unicode vs. encoding Pin
Richard Deeming18-Dec-17 3:19
mveRichard Deeming18-Dec-17 3:19 
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 
The obvious error is that you're trying to pass the non-generic ArrayList class to a parameter which expects the generic IEnumerable<T> interface, and trying to assign an IEnumerable<T> to an ArrayList.

ArrayList doesn't implement IEnumerable<T>, because it pre-dates generics. Change the variables:
C#
List<Record> UnsortedRecords = new List<Record>();
UnsortedRecords.Add(...);
...

IEnumerable<Record> SortedRecords = SortRecords(UnsortedRecords);

With that change in place, your code should work. If you're still getting compiler errors, then post them here.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


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 
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 

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.