Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Datatable problem with updating value in C#.net Pin
sejal1231-Jan-09 23:37
sejal1231-Jan-09 23:37 
Questionstruct and array? Pin
dec8228-Dec-08 23:23
dec8228-Dec-08 23:23 
AnswerRe: struct and array? Pin
rah_sin28-Dec-08 23:27
professionalrah_sin28-Dec-08 23:27 
GeneralRe: struct and array? Pin
Guffa28-Dec-08 23:55
Guffa28-Dec-08 23:55 
AnswerRe: struct and array? Pin
Guffa28-Dec-08 23:53
Guffa28-Dec-08 23:53 
AnswerRe: struct and array? Pin
Brij29-Dec-08 0:27
mentorBrij29-Dec-08 0:27 
AnswerRe: struct and array? [modified] Pin
Lev Danielyan29-Dec-08 4:35
Lev Danielyan29-Dec-08 4:35 
GeneralRe: struct and array? Pin
Guffa29-Dec-08 10:28
Guffa29-Dec-08 10:28 
With some corrections, that would work, but it still isn't a good implementation of a struct.

Consider this:
MY_TRUCT x = new MY_TRUCT(new string[] { "a", "b" } );
Console.WriteLine(x.ParaTypes[0]); // shows "a"
MY_TRUCT y = x;
y.ParaTypes[0] = "c";
Console.WriteLine(x.ParaTypes[0]); // now shows "c"

Mutable structs can give you surprising results, structs containing mutable objects can give you even more surprising results...

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: struct and array? Pin
Lev Danielyan29-Dec-08 18:53
Lev Danielyan29-Dec-08 18:53 
GeneralRe: struct and array? Pin
dec8229-Dec-08 19:02
dec8229-Dec-08 19:02 
GeneralRe: struct and array? Pin
Lev Danielyan29-Dec-08 19:06
Lev Danielyan29-Dec-08 19:06 
QuestionRead HTML tags in XML Reader Pin
jhuerta28-Dec-08 22:55
jhuerta28-Dec-08 22:55 
AnswerRe: Read HTML tags in XML Reader Pin
N a v a n e e t h28-Dec-08 23:11
N a v a n e e t h28-Dec-08 23:11 
GeneralRe: Read HTML tags in XML Reader Pin
jhuerta29-Dec-08 3:33
jhuerta29-Dec-08 3:33 
Questionproblem in datagridview Pin
SreejithKumar M28-Dec-08 22:39
SreejithKumar M28-Dec-08 22:39 
AnswerRe: problem in datagridview Pin
rah_sin28-Dec-08 22:47
professionalrah_sin28-Dec-08 22:47 
GeneralRe: problem in datagridview Pin
SreejithKumar M28-Dec-08 22:54
SreejithKumar M28-Dec-08 22:54 
GeneralRe: problem in datagridview Pin
rah_sin28-Dec-08 23:02
professionalrah_sin28-Dec-08 23:02 
GeneralRe: problem in datagridview Pin
SreejithKumar M28-Dec-08 23:07
SreejithKumar M28-Dec-08 23:07 
QuestionHow to send shutdown-restart command with TCP/IP Pin
Member 465172928-Dec-08 22:31
Member 465172928-Dec-08 22:31 
AnswerRe: How to send shutdown-restart command with TCP/IP Pin
Dave Kreskowiak29-Dec-08 1:51
mveDave Kreskowiak29-Dec-08 1:51 
GeneralRe: How to send shutdown-restart command with TCP/IP Pin
Member 465172929-Dec-08 3:43
Member 465172929-Dec-08 3:43 
GeneralRe: How to send shutdown-restart command with TCP/IP Pin
Dave Kreskowiak29-Dec-08 3:50
mveDave Kreskowiak29-Dec-08 3:50 
GeneralRe: How to send shutdown-restart command with TCP/IP Pin
Member 465172929-Dec-08 4:57
Member 465172929-Dec-08 4:57 
GeneralRe: How to send shutdown-restart command with TCP/IP Pin
Member 465172930-Dec-08 0:39
Member 465172930-Dec-08 0:39 

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.