Click here to Skip to main content
14,384,622 members
   

C#

 
AnswerRe: Literally my first "program", and I'm trying to break it down. Pin
OriginalGriff2-May-19 22:28
protectorOriginalGriff2-May-19 22:28 
QuestionSoftware/Tool for Form Designing to be user on cross platform Pin
Singh Anita2-May-19 4:23
memberSingh Anita2-May-19 4:23 
AnswerRe: Software/Tool for Form Designing to be user on cross platform Pin
Richard MacCutchan2-May-19 4:36
protectorRichard MacCutchan2-May-19 4:36 
QuestionDéveloppement général Pin
Member 1434980630-Apr-19 6:52
memberMember 1434980630-Apr-19 6:52 
AnswerRe: Développement général Pin
OriginalGriff30-Apr-19 7:32
protectorOriginalGriff30-Apr-19 7:32 
AnswerMODBUS RTU Pin
Luc Pattyn30-Apr-19 10:01
professionalLuc Pattyn30-Apr-19 10:01 
AnswerRe: Développement général Pin
Gerry Schmitz30-Apr-19 21:56
mveGerry Schmitz30-Apr-19 21:56 
QuestionNewbie: if/else Pin
Member 1434938430-Apr-19 3:38
memberMember 1434938430-Apr-19 3:38 
AnswerRe: Newbie: if/else Pin
OriginalGriff30-Apr-19 4:10
protectorOriginalGriff30-Apr-19 4:10 
GeneralRe: Newbie: if/else Pin
Member 1434938430-Apr-19 5:23
memberMember 1434938430-Apr-19 5:23 
GeneralRe: Newbie: if/else Pin
OriginalGriff30-Apr-19 5:30
protectorOriginalGriff30-Apr-19 5:30 
GeneralRe: Newbie: if/else Pin
Richard MacCutchan30-Apr-19 6:47
protectorRichard MacCutchan30-Apr-19 6:47 
GeneralRe: Newbie: if/else Pin
OriginalGriff30-Apr-19 6:52
protectorOriginalGriff30-Apr-19 6:52 
GeneralRe: Newbie: if/else Pin
Richard MacCutchan30-Apr-19 7:02
protectorRichard MacCutchan30-Apr-19 7:02 
GeneralRe: Newbie: if/else Pin
OriginalGriff30-Apr-19 7:28
protectorOriginalGriff30-Apr-19 7:28 
GeneralRe: Newbie: if/else Pin
Richard MacCutchan30-Apr-19 22:32
protectorRichard MacCutchan30-Apr-19 22:32 
AnswerRe: Newbie: if/else Pin
BillWoodruff30-Apr-19 19:07
mveBillWoodruff30-Apr-19 19:07 
AnswerRe: Newbie: if/else Pin
David A. Gray3-May-19 8:40
groupDavid A. Gray3-May-19 8:40 
QuestionRound Corner in C# windows foam application Pin
Member 1434920730-Apr-19 2:20
memberMember 1434920730-Apr-19 2:20 
AnswerRe: Round Corner in C# windows foam application Pin
Eddy Vluggen30-Apr-19 2:27
mveEddy Vluggen30-Apr-19 2:27 
GeneralRe: Round Corner in C# windows foam application Pin
BillWoodruff30-Apr-19 19:42
mveBillWoodruff30-Apr-19 19:42 
GeneralRe: Round Corner in C# windows foam application Pin
Eddy Vluggen1-May-19 2:03
mveEddy Vluggen1-May-19 2:03 
AnswerRe: Round Corner in C# windows foam application Pin
Gerry Schmitz30-Apr-19 2:56
mveGerry Schmitz30-Apr-19 2:56 
AnswerRe: Round Corner in C# windows foam application Pin
BillWoodruff30-Apr-19 19:40
mveBillWoodruff30-Apr-19 19:40 
QuestionHow to get the MaxValue using LINQ ?! Pin
Abdalla Ben Omran29-Apr-19 3:24
memberAbdalla Ben Omran29-Apr-19 3:24 
Hi there .
i am useing the following Code trying to get the maxValue from a list but it gives me an Exception (At least one object must implement IComparable) !

I need help to get a solution and explanation why this Exception


public static TheQFromDB GetMaxWithLINQ (List<TheQFromDB> input)
       {
           TheQFromDB GetItem = input.First();
           foreach (var item in input)
           {
               var max = input.OrderByDescending(s=> s.SecondsDiff).Max();
               GetItem = item;
           }
           return GetItem;
       }

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.