Click here to Skip to main content
15,886,799 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:41
Brian_TheLion28-Mar-19 0:41 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 0:51
sitebuilderLuc Pattyn28-Mar-19 0:51 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:57
Brian_TheLion28-Mar-19 0:57 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 1:07
sitebuilderLuc Pattyn28-Mar-19 1:07 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 1:31
Brian_TheLion28-Mar-19 1:31 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 1:37
sitebuilderLuc Pattyn28-Mar-19 1:37 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 2:03
Brian_TheLion28-Mar-19 2:03 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 3:26
mveOriginalGriff28-Mar-19 3:26 
Member 14154627 wrote:
I had considered using Lists but I think there was no direct access to the data in a list except using the foreach command.

No, a List<T> is a "self expanding array" and can be accessed in the same way as an array:
C#
List<string> items = new List<string>();
items.Add("Hello");
items.Add("World");
Console.Writeline(items[0] + " " + items[1]);


For reference there is this: List<T> - Is it really as efficient as you probably think?[^] - don't look at it too hard now, it may be a little more advanced than you need at the moment.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!


modified 28-Mar-19 11:12am.

GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 16:54
Brian_TheLion28-Mar-19 16:54 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff29-Mar-19 2:33
mveOriginalGriff29-Mar-19 2:33 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion29-Mar-19 3:39
Brian_TheLion29-Mar-19 3:39 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff1-Apr-19 20:01
mveOriginalGriff1-Apr-19 20:01 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion2-Apr-19 1:04
Brian_TheLion2-Apr-19 1:04 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion2-Apr-19 14:23
Brian_TheLion2-Apr-19 14:23 
GeneralRe: Looks like C# does not support Global Variables Pin
#realJSOP29-Mar-19 2:28
mve#realJSOP29-Mar-19 2:28 
AnswerRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 0:20
mveOriginalGriff28-Mar-19 0:20 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:26
Brian_TheLion28-Mar-19 0:26 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 0:40
mveOriginalGriff28-Mar-19 0:40 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 1:00
Brian_TheLion28-Mar-19 1:00 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 2:35
mveOriginalGriff28-Mar-19 2:35 
QuestionReading Registry Values Pin
ormonds27-Mar-19 15:33
ormonds27-Mar-19 15:33 
AnswerRe: Reading Registry Values Pin
Super Lloyd27-Mar-19 19:38
Super Lloyd27-Mar-19 19:38 
AnswerRe: Reading Registry Values Pin
OriginalGriff27-Mar-19 20:35
mveOriginalGriff27-Mar-19 20:35 
AnswerRe: Reading Registry Values Pin
Luc Pattyn27-Mar-19 22:01
sitebuilderLuc Pattyn27-Mar-19 22:01 
QuestionOData InvalidOperationException. Bad Request - Error in query syntax Pin
Bastien Vandamme26-Mar-19 16:13
Bastien Vandamme26-Mar-19 16:13 

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.