Click here to Skip to main content
15,898,938 members
Home / Discussions / C#
   

C#

 
QuestionHow can i create a html file? Pin
CursedXp25-Dec-05 4:39
CursedXp25-Dec-05 4:39 
AnswerRe: How can i create a html file? Pin
Stanciu Vlad25-Dec-05 7:29
Stanciu Vlad25-Dec-05 7:29 
QuestionCopying File Names from Explorer Pin
redfish3424-Dec-05 23:24
redfish3424-Dec-05 23:24 
AnswerRe: Copying File Names from Explorer Pin
Judah Gabriel Himango25-Dec-05 8:35
sponsorJudah Gabriel Himango25-Dec-05 8:35 
GeneralRe: Copying File Names from Explorer Pin
redfish3425-Dec-05 16:04
redfish3425-Dec-05 16:04 
AnswerFOUND SOLUTION Pin
redfish3425-Dec-05 22:28
redfish3425-Dec-05 22:28 
QuestionIE Menu Extension Pin
ghost120724-Dec-05 22:52
ghost120724-Dec-05 22:52 
QuestionPassing a class by value, but reversed? Pin
monrobot1324-Dec-05 20:25
monrobot1324-Dec-05 20:25 
I have a collection class that I've derived from List<MyClass>. I've added no extra functionality to this class except a constructor that clears the list. My problem is this: I'm using the collection in MyClass (the same class that the list is typed for) and I'm doing this
// fill MyClass with some values
col.Add (this);
// where 'col' is my generic List<> dervied class
No problem there it adds the class just fine. The problem arises when I run the code again (it's in a loop), what's happening is that the previous values in the list are changed to the new values that the class has taken on. In effect, if I run the loop, let's say, 5 times the List<> has 5 items in it, but they all have the exact same values.

Does anyone have any ideas as to how I can defeat this? I'm thinking there's something better I could be passing into the Add function, but I'm not sure what it would be. I was also thinking I could override the Add function in my derived collection class and create a deep copy of the this parmeter that I passed in, but I'm not sure if that's the right idea.

Any ideas and/or help is very appreciated. Thanks.

- Aaron
AnswerRe: Passing a class by value, but reversed? Pin
S. Senthil Kumar25-Dec-05 1:36
S. Senthil Kumar25-Dec-05 1:36 
Questionprogramatically creating control instances Pin
Pyro Joe24-Dec-05 15:51
Pyro Joe24-Dec-05 15:51 
AnswerRe: programatically creating control instances Pin
Luke Davis24-Dec-05 16:24
Luke Davis24-Dec-05 16:24 
GeneralRe: programatically creating control instances Pin
Pyro Joe25-Dec-05 5:33
Pyro Joe25-Dec-05 5:33 
QuestionHow start a application at beginning windows(about registry) Pin
Developer_124-Dec-05 14:35
Developer_124-Dec-05 14:35 
AnswerRe: How start a application at beginning windows(about registry) Pin
Developer_124-Dec-05 21:52
Developer_124-Dec-05 21:52 
AnswerRe: How start a application at beginning windows(about registry) Pin
S. Senthil Kumar25-Dec-05 1:38
S. Senthil Kumar25-Dec-05 1:38 
QuestionVoice input in C# Pin
rajajee24-Dec-05 6:03
rajajee24-Dec-05 6:03 
QuestionNeed help for Parsing HTML Pin
dr_hema24-Dec-05 6:03
dr_hema24-Dec-05 6:03 
QuestionGetting .NET types programaticly? Pin
mikker_12324-Dec-05 3:09
mikker_12324-Dec-05 3:09 
AnswerRe: Getting .NET types programaticly? Pin
[Marc]24-Dec-05 4:19
[Marc]24-Dec-05 4:19 
QuestionASync Sockets Throwing Strange Exception Pin
ColonelSanders24-Dec-05 2:21
ColonelSanders24-Dec-05 2:21 
AnswerRe: ASync Sockets Throwing Strange Exception Pin
ColonelSanders24-Dec-05 18:00
ColonelSanders24-Dec-05 18:00 
QuestionColoring rows in DataGrid Pin
Yoyosch23-Dec-05 23:22
Yoyosch23-Dec-05 23:22 
Questiontransfer my inbox mails to database Pin
sreesiri23-Dec-05 19:22
sreesiri23-Dec-05 19:22 
QuestionSend File Pin
flysky61823-Dec-05 17:25
flysky61823-Dec-05 17:25 
AnswerRe: Send File Pin
HakunaMatada23-Dec-05 17:34
HakunaMatada23-Dec-05 17:34 

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.