Click here to Skip to main content
15,905,785 members
Home / Discussions / C#
   

C#

 
AnswerRe: data structure Pin
Luc Pattyn28-Apr-19 9:59
sitebuilderLuc Pattyn28-Apr-19 9: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 5:38
Abdalla Ben Omran26-Apr-19 5:38 
AnswerRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
#realJSOP26-Apr-19 5:45
professional#realJSOP26-Apr-19 5:45 
GeneralRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
Abdalla Ben Omran26-Apr-19 23:49
Abdalla Ben Omran26-Apr-19 23:49 
GeneralRe: How to find the Max or the Highest value in (List) using just C# code and No LINQ Pin
#realJSOP27-Apr-19 0:01
professional#realJSOP27-Apr-19 0: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 0:45
Abdalla Ben Omran27-Apr-19 0: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 2:50
mveGerry Schmitz27-Apr-19 2: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 6:32
Abdalla Ben Omran27-Apr-19 6: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 8:13
mveRichard Deeming1-May-19 8: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 5:55
mveRichard Deeming26-Apr-19 5:55 
QuestionHow to get an Not Empty Instance back ? Pin
Abdalla Ben Omran26-Apr-19 2:42
Abdalla Ben Omran26-Apr-19 2:42 
AnswerRe: How to get an Not Empty Instance back ? Pin
Richard Deeming26-Apr-19 3:14
mveRichard Deeming26-Apr-19 3:14 
QuestionWhat is Out in C# ? Pin
Abdalla Ben Omran25-Apr-19 23:13
Abdalla Ben Omran25-Apr-19 23:13 
AnswerRe: What is Out in C# ? Pin
OriginalGriff25-Apr-19 23:37
mveOriginalGriff25-Apr-19 23:37 
GeneralRe: What is Out in C# ? Pin
Abdalla Ben Omran25-Apr-19 23:50
Abdalla Ben Omran25-Apr-19 23:50 
GeneralRe: What is Out in C# ? Pin
OriginalGriff26-Apr-19 0:03
mveOriginalGriff26-Apr-19 0:03 
QuestionI want to generate/make my predefined variable name in the C# code Pin
Member 1330748425-Apr-19 5:19
Member 1330748425-Apr-19 5:19 
AnswerRe: I want to generate/make my predefined variable name in the C# code Pin
Richard Deeming25-Apr-19 5:36
mveRichard Deeming25-Apr-19 5:36 
GeneralRe: I want to generate/make my predefined variable name in the C# code Pin
#realJSOP25-Apr-19 9:18
professional#realJSOP25-Apr-19 9:18 
AnswerRe: I want to generate/make my predefined variable name in the C# code Pin
OriginalGriff25-Apr-19 6:12
mveOriginalGriff25-Apr-19 6:12 
AnswerRe: I want to generate/make my predefined variable name in the C# code Pin
#realJSOP25-Apr-19 9:23
professional#realJSOP25-Apr-19 9:23 
GeneralRe: I want to generate/make my predefined variable name in the C# code Pin
Richard Deeming25-Apr-19 11:24
mveRichard Deeming25-Apr-19 11:24 
Or even:
string x1 = nameof(x1);
string x27 = nameof(x27);
string x99 = nameof(x99);

Dictionary<string,string> myFields = new Dictionary<string,string>();
myFields.Add(x1, "Hello");
myFields.Add(x27, "Hi");
myFields.Add(x99, "Hey");

MessageBox.Show(myFields[x1]);

Because "magic strings" are evil. Smile | :)



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

GeneralRe: I want to generate/make my predefined variable name in the C# code Pin
#realJSOP25-Apr-19 23:40
professional#realJSOP25-Apr-19 23:40 
QuestionAdventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218425-Apr-19 3:55
Member 1412218425-Apr-19 3:55 
AnswerRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Ron Nicholson25-Apr-19 5:34
professionalRon Nicholson25-Apr-19 5:34 

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.