Click here to Skip to main content
15,895,462 members
Home / Discussions / C#
   

C#

 
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 
Hi all;
Imagine I have defined 3 variables as follow:
String x1="Hello";
String x27="Hi";
String x99="Hey";

Then later in the program code I want to access the content of them by making their name. 

Int i=27;

/*	In this section I want to concatenate the variable "i" to the string "x" and then show the content of it or even assign a new value to it.
For example:
*/
                 Messagebox.show("x" + i.tosting()); 

/*		The output will be: "x27". But I want to show the content of x27 variable, that is the word "Hi". 
Don’t forget that I don’t want to use Array or Dictionary or List and so on. My goal is: to make a variable name and access to its content or assign it a new value like this:
*/
"x" + i.tosting() = "New";        // x27 = "New";
 
What's the correct code in C#? Any idea?
Thank you in advance.
Rara

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
mve#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
mve#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 
GeneralRe: I want to generate/make my predefined variable name in the C# code Pin
#realJSOP25-Apr-19 23:40
mve#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 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218425-Apr-19 10:36
Member 1412218425-Apr-19 10:36 
AnswerRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
OriginalGriff25-Apr-19 6:17
mveOriginalGriff25-Apr-19 6:17 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218425-Apr-19 10:44
Member 1412218425-Apr-19 10:44 
AnswerRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
V.25-Apr-19 19:02
professionalV.25-Apr-19 19:02 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218425-Apr-19 21:16
Member 1412218425-Apr-19 21:16 
AnswerRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Ron Nicholson26-Apr-19 5:13
professionalRon Nicholson26-Apr-19 5:13 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218426-Apr-19 21:43
Member 1412218426-Apr-19 21:43 
AnswerRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
BillWoodruff29-Apr-19 8:23
professionalBillWoodruff29-Apr-19 8:23 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218429-Apr-19 10:40
Member 1412218429-Apr-19 10:40 

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.