Click here to Skip to main content
14,387,840 members
   

C#

 
AnswerRe: How to get the MaxValue using LINQ ?! Pin
Richard Deeming3-May-19 1:43
mveRichard Deeming3-May-19 1:43 
PraiseRe: How to get the MaxValue using LINQ ?! Pin
Maciej Los3-May-19 2:25
mveMaciej Los3-May-19 2:25 
AnswerRe: How to get the MaxValue using LINQ ?! Pin
Maciej Los3-May-19 2:34
mveMaciej Los3-May-19 2:34 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
Abdalla Ben Omran3-May-19 3:30
MemberAbdalla Ben Omran3-May-19 3:30 
Questiondata structure Pin
Member 1434080028-Apr-19 4:35
MemberMember 1434080028-Apr-19 4:35 
AnswerRe: data structure Pin
OriginalGriff28-Apr-19 5:27
mveOriginalGriff28-Apr-19 5:27 
AnswerRe: data structure Pin
Luc Pattyn28-Apr-19 10:59
sitebuilderLuc Pattyn28-Apr-19 10:59 
QuestionHow to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
Abdalla Ben Omran26-Apr-19 6:38
MemberAbdalla Ben Omran26-Apr-19 6:38 
In this Method returns the TheQFromDB an Instance from the input list where the property SecondsDiff is the highest and in each item in input has a SecondDiff value but one is the highest . how could i find that without using LINQ ? and how could i check all the items . Look at the Code please

    public static TheQFromDB CalculateMaxVal (List<TheQFromDB> input)
    {
        double maxValue = double.MinValue;

        foreach (var item in input)
        {
            if (item.SecondsDiff > maxValue)
            {
                maxValue = item.SecondsDiff;
            }
        }

        Console.WriteLine(maxValue);
        return null;

    }

AnswerRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
#realJSOP26-Apr-19 6:45
mve#realJSOP26-Apr-19 6:45 
GeneralRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
Abdalla Ben Omran27-Apr-19 0:49
MemberAbdalla Ben Omran27-Apr-19 0:49 
GeneralRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
#realJSOP27-Apr-19 1:01
mve#realJSOP27-Apr-19 1:01 
GeneralRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
Abdalla Ben Omran27-Apr-19 1:45
MemberAbdalla Ben Omran27-Apr-19 1:45 
GeneralRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
Gerry Schmitz27-Apr-19 3:50
mveGerry Schmitz27-Apr-19 3:50 
GeneralRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
Abdalla Ben Omran27-Apr-19 7:32
MemberAbdalla Ben Omran27-Apr-19 7:32 
GeneralRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
Richard Deeming1-May-19 9:13
mveRichard Deeming1-May-19 9:13 
AnswerRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
Richard Deeming26-Apr-19 6:55
mveRichard Deeming26-Apr-19 6:55 
QuestionHow to get an Not Empty Instance back ? Pin
Abdalla Ben Omran26-Apr-19 3:42
MemberAbdalla Ben Omran26-Apr-19 3:42 
AnswerRe: How to get an Not Empty Instance back ? Pin
Richard Deeming26-Apr-19 4:14
mveRichard Deeming26-Apr-19 4:14 
QuestionWhat is Out in C# ? Pin
Abdalla Ben Omran26-Apr-19 0:13
MemberAbdalla Ben Omran26-Apr-19 0:13 
AnswerRe: What is Out in C# ? Pin
OriginalGriff26-Apr-19 0:37
mveOriginalGriff26-Apr-19 0:37 
GeneralRe: What is Out in C# ? Pin
Abdalla Ben Omran26-Apr-19 0:50
MemberAbdalla Ben Omran26-Apr-19 0:50 
GeneralRe: What is Out in C# ? Pin
OriginalGriff26-Apr-19 1:03
mveOriginalGriff26-Apr-19 1:03 
QuestionI want to generate/make my predefined variable name in the C# code Pin
Member 1330748425-Apr-19 6:19
MemberMember 1330748425-Apr-19 6:19 
AnswerRe: I want to generate/make my predefined variable name in the C# code Pin
Richard Deeming25-Apr-19 6:36
mveRichard Deeming25-Apr-19 6:36 
GeneralRe: I want to generate/make my predefined variable name in the C# code Pin
#realJSOP25-Apr-19 10:18
mve#realJSOP25-Apr-19 10:18 

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.