Click here to Skip to main content
15,916,945 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to IF?! Pin
harold aptroot10-Apr-10 3:03
harold aptroot10-Apr-10 3:03 
GeneralRe: how to IF?! Pin
AspDotNetDev10-Apr-10 13:35
protectorAspDotNetDev10-Apr-10 13:35 
GeneralRe: how to IF?! Pin
harold aptroot10-Apr-10 13:54
harold aptroot10-Apr-10 13:54 
GeneralRe: how to IF?! Pin
AspDotNetDev10-Apr-10 14:39
protectorAspDotNetDev10-Apr-10 14:39 
GeneralRe: how to IF?! Pin
harold aptroot10-Apr-10 14:48
harold aptroot10-Apr-10 14:48 
GeneralRe: how to IF?! Pin
AspDotNetDev10-Apr-10 15:02
protectorAspDotNetDev10-Apr-10 15:02 
GeneralRe: how to IF?! Pin
harold aptroot10-Apr-10 15:18
harold aptroot10-Apr-10 15:18 
GeneralRe: how to IF?! Pin
NavnathKale10-Apr-10 20:18
NavnathKale10-Apr-10 20:18 
GeneralRe: how to IF?! Pin
harold aptroot11-Apr-10 2:25
harold aptroot11-Apr-10 2:25 
QuestionSerialization problem Pin
Alan Balkany9-Apr-10 10:57
Alan Balkany9-Apr-10 10:57 
AnswerRe: Serialization problem Pin
Migounette9-Apr-10 11:13
Migounette9-Apr-10 11:13 
GeneralRe: Serialization problem Pin
Alan Balkany9-Apr-10 11:17
Alan Balkany9-Apr-10 11:17 
GeneralRe: Serialization problem Pin
Alan Balkany9-Apr-10 11:38
Alan Balkany9-Apr-10 11:38 
GeneralRe: Serialization problem Pin
Migounette9-Apr-10 11:55
Migounette9-Apr-10 11:55 
AnswerRe: Serialization problem Pin
Luc Pattyn9-Apr-10 11:23
sitebuilderLuc Pattyn9-Apr-10 11:23 
GeneralRe: Serialization problem Pin
Alan Balkany9-Apr-10 11:29
Alan Balkany9-Apr-10 11:29 
QuestionDont understand arrays Pin
netJP12L9-Apr-10 10:44
netJP12L9-Apr-10 10:44 
AnswerRe: Dont understand arrays Pin
Migounette9-Apr-10 11:25
Migounette9-Apr-10 11:25 
AnswerRe: Dont understand arrays Pin
Sir Dot Net9-Apr-10 11:26
Sir Dot Net9-Apr-10 11:26 
AnswerRe: Dont understand arrays Pin
AspDotNetDev9-Apr-10 11:35
protectorAspDotNetDev9-Apr-10 11:35 
When you use an initializer list, the outermost array is the first dimension and the innermost array is the last dimension. So, myarray[0,0] is "01" and myArray[0,1] is "Honda" (notice that I didn't change the index for the first dimension). Another way of seeing it is that the first index of the first dimension points to {"01", "Honda"}... you have to specify an index into the second dimension to get either "01" or "Honda".

In the example you gave, the first dimension (GetUpperBound(0)) has an upper bound of 2 (because there are 3 items, the third item would be referenced by index 2). The second dimension (GetUpperBound(1)) has an upper bound of 1 (because there are 2 items in each subdimension, the second items are referenced by index 1).

If that doesn't make sense, play with it a bit and you'll eventually get it via osmosis.

By the way, in C# the lower bound should always be 0.

GeneralRe: Dont understand arrays Pin
Luc Pattyn9-Apr-10 12:24
sitebuilderLuc Pattyn9-Apr-10 12:24 
GeneralRe: Dont understand arrays Pin
AspDotNetDev9-Apr-10 16:12
protectorAspDotNetDev9-Apr-10 16:12 
Questionownerdrawn treenodes Pin
xilefxilef9-Apr-10 10:32
xilefxilef9-Apr-10 10:32 
AnswerRe: ownerdrawn treenodes Pin
NavnathKale9-Apr-10 11:10
NavnathKale9-Apr-10 11:10 
AnswerRe: ownerdrawn treenodes Pin
Migounette9-Apr-10 12:28
Migounette9-Apr-10 12:28 

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.