Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
QuestionHow do I print the address of a reference? Pin
Shao Voon Wong14-Dec-08 16:19
mvaShao Voon Wong14-Dec-08 16:19 
AnswerRe: How do I print the address of a reference? Pin
Christian Graus14-Dec-08 17:18
protectorChristian Graus14-Dec-08 17:18 
GeneralRe: How do I print the address of a reference? Pin
Shao Voon Wong15-Dec-08 14:00
mvaShao Voon Wong15-Dec-08 14:00 
AnswerRe: How do I print the address of a reference? Pin
dan!sh 14-Dec-08 17:21
professional dan!sh 14-Dec-08 17:21 
GeneralRe: How do I print the address of a reference? Pin
Shao Voon Wong15-Dec-08 14:06
mvaShao Voon Wong15-Dec-08 14:06 
AnswerRe: How do I print the address of a reference? Pin
Guffa14-Dec-08 20:47
Guffa14-Dec-08 20:47 
GeneralRe: How do I print the address of a reference? Pin
Shao Voon Wong15-Dec-08 14:00
mvaShao Voon Wong15-Dec-08 14:00 
QuestionHow to create a jagged array of multiple data-type data? Pin
LightIceStorm14-Dec-08 14:41
LightIceStorm14-Dec-08 14:41 
How to create a jagged array of multiple data-type data?


Hallo everyone,

I need a little help in creating an array that holds this kind of data:
It should be a dynamic two dimensional array similar to a dataset in a database.
All rows of a column have the sama data type.
int string System.Drawing.Color System.Drawing.Rectangle(=Struct)
1 "TEST1" Color.Black {,,,,}
2 "TEST2" Color.Blue {,,,,}
3 "TEST3" Color.Green {,,,,}
4 "TEST4" Color.Red {,,,,}


With "dynamic" I mean that I don't need to specify the size of the array and that I can add as many rows as I like.
Even at creation time of the array I don't know how many rows it will get.
To realize this I'd like to use Lists.

I had something like this in my mind:

 public object[] [] AxisLabelItems = new object[4] [] {<br />
         new List<Int32>(), <br />
         new List<String>(), <br />
         new List<System.Drawing.Color>(),<br />
         new List<System.Drawing.Rectangle>()};


but that doesn't work: "Implicit conversion from List to object not possible"


Any suggestions?

Thanks.

PS: Why are there all the new lines above the html-table? They belong to the table somehow..?? (If I mark these lines the fields of the table get marked too.)

I've just used:
<table border="1">
   <tr>
      <th> </th>
   </tr>
   <tr>
      <td> </td>
   </tr>
</table>
AnswerRe: How to create a jagged array of multiple data-type data? Pin
Colin Angus Mackay14-Dec-08 14:48
Colin Angus Mackay14-Dec-08 14:48 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Luc Pattyn14-Dec-08 15:08
sitebuilderLuc Pattyn14-Dec-08 15:08 
AnswerRe: How to create a jagged array of multiple data-type data? [modified] Pin
Guffa14-Dec-08 15:44
Guffa14-Dec-08 15:44 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Mycroft Holmes14-Dec-08 19:26
professionalMycroft Holmes14-Dec-08 19:26 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
LightIceStorm15-Dec-08 9:57
LightIceStorm15-Dec-08 9:57 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Guffa15-Dec-08 12:03
Guffa15-Dec-08 12:03 
QuestionLoading Multiple Images to a Picture Box Pin
User 543536414-Dec-08 14:19
User 543536414-Dec-08 14:19 
AnswerRe: Loading Multiple Images to a Picture Box Pin
Christian Graus14-Dec-08 17:17
protectorChristian Graus14-Dec-08 17:17 
GeneralRe: Loading Multiple Images to a Picture Box Pin
User 543536414-Dec-08 17:30
User 543536414-Dec-08 17:30 
GeneralRe: Loading Multiple Images to a Picture Box Pin
Lev Danielyan14-Dec-08 19:16
Lev Danielyan14-Dec-08 19:16 
QuestionC# Xml struggles Pin
lszanto14-Dec-08 12:56
lszanto14-Dec-08 12:56 
AnswerRe: C# Xml struggles Pin
lszanto14-Dec-08 12:58
lszanto14-Dec-08 12:58 
AnswerRe: C# Xml struggles Pin
Colin Angus Mackay14-Dec-08 14:20
Colin Angus Mackay14-Dec-08 14:20 
GeneralRe: C# Xml struggles Pin
lszanto14-Dec-08 14:33
lszanto14-Dec-08 14:33 
QuestionForm turning into component Pin
kod3brkr14-Dec-08 12:41
kod3brkr14-Dec-08 12:41 
AnswerRe: Form turning into component Pin
Colin Angus Mackay14-Dec-08 14:07
Colin Angus Mackay14-Dec-08 14:07 
GeneralRe: Form turning into component Pin
kod3brkr14-Dec-08 14:19
kod3brkr14-Dec-08 14:19 

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.