Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# RSA Pin
Ennis Ray Lynch, Jr.2-Jun-09 4:41
Ennis Ray Lynch, Jr.2-Jun-09 4:41 
AnswerRe: C# RSA Pin
Henry Minute2-Jun-09 4:43
Henry Minute2-Jun-09 4:43 
GeneralRe: C# RSA Pin
budala1232-Jun-09 5:18
budala1232-Jun-09 5:18 
GeneralRe: C# RSA Pin
Henry Minute2-Jun-09 5:32
Henry Minute2-Jun-09 5:32 
GeneralRe: C# RSA Pin
budala1232-Jun-09 6:02
budala1232-Jun-09 6:02 
GeneralRe: C# RSA Pin
Henry Minute2-Jun-09 6:08
Henry Minute2-Jun-09 6:08 
QuestionImport Data from CSV into Datatable Pin
polishprogrammer2-Jun-09 4:16
polishprogrammer2-Jun-09 4:16 
AnswerRe: Import Data from CSV into Datatable Pin
dan!sh 2-Jun-09 4:31
professional dan!sh 2-Jun-09 4:31 
QuestionGetting 530 error while downloading files from FTP Pin
avi_dadi20022-Jun-09 4:06
avi_dadi20022-Jun-09 4:06 
AnswerRe: Getting 530 error while downloading files from FTP Pin
EliottA2-Jun-09 5:22
EliottA2-Jun-09 5:22 
Questionclient/server application Pin
tek 20092-Jun-09 4:01
tek 20092-Jun-09 4:01 
AnswerRe: client/server application Pin
dan!sh 2-Jun-09 4:20
professional dan!sh 2-Jun-09 4:20 
GeneralRe: client/server application Pin
EliottA2-Jun-09 5:24
EliottA2-Jun-09 5:24 
GeneralRe: client/server application Pin
tek 20092-Jun-09 6:17
tek 20092-Jun-09 6:17 
GeneralRe: client/server application Pin
EliottA2-Jun-09 6:49
EliottA2-Jun-09 6:49 
GeneralRe: client/server application Pin
tek 20092-Jun-09 22:06
tek 20092-Jun-09 22:06 
QuestionDependencies error while creating Setup file in C# Windows application Pin
Mads1152-Jun-09 3:07
Mads1152-Jun-09 3:07 
AnswerRe: Dependencies error while creating Setup file in C# Windows application Pin
Ahmed Khallaf2-Jun-09 3:22
Ahmed Khallaf2-Jun-09 3:22 
GeneralRe: Dependencies error while creating Setup file in C# Windows application Pin
Mads1152-Jun-09 3:30
Mads1152-Jun-09 3:30 
AnswerRe: Dependencies error while creating Setup file in C# Windows application Pin
Searril2-Jun-09 4:55
Searril2-Jun-09 4:55 
Questionhow do I detect a mouse down in a DataGridView that is not over a cell? Pin
Dan Neely2-Jun-09 2:54
Dan Neely2-Jun-09 2:54 
AnswerRe: how do I detect a mouse down in a DataGridView that is not over a cell? Pin
Jimmanuel2-Jun-09 3:00
Jimmanuel2-Jun-09 3:00 
GeneralRe: how do I detect a mouse down in a DataGridView that is not over a cell? Pin
Dan Neely2-Jun-09 4:04
Dan Neely2-Jun-09 4:04 
Questionadding to a list Pin
maurimauri292-Jun-09 2:47
maurimauri292-Jun-09 2:47 
Hi all,
I am quite new to C# and I bumped into this issue and I cannot understand why it is happening. I have a list of objects of class1. class1 has, as a member variable a list of objects of class2, and class2 has as a member variable a list of objiects of class3. In my code I have to add some objects to the list of objects of class3 for the last element of the list of objects of class2 for one of the elements of the list of objects of class1. It seems it should be straight forward but i found a strange behaviour and maybe you clever people can help me make some sense out of it.
I'll explain with an example: if the list of objects of class1 has 2 elements (ListClass1[0] and ListClass2[1]) and I do

ListClass1[0].ListClass2[ListClass1[0].ListClass2.Length-1].ListClass3.Add(ObjClass3)


at the end of this I find that the ObjClass3 has been added to ListClass1[1].ListClass2[ListClass1[1].ListClass2.Length-1].ListClass3

Why is that happening?
Is there any way around this?
Cheers
Mauri
AnswerRe: adding to a list Pin
Le centriste2-Jun-09 2:50
Le centriste2-Jun-09 2:50 

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.