Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
GeneralRe: accessing updated control properties Pin
MoustafaS12-May-05 11:25
MoustafaS12-May-05 11:25 
GeneralRe: accessing updated control properties Pin
ekedem12-May-05 11:32
ekedem12-May-05 11:32 
Generalbinding Pin
cristina_tudor12-May-05 11:02
cristina_tudor12-May-05 11:02 
Generalfoolish question , help! Pin
jinzhecheng12-May-05 9:16
jinzhecheng12-May-05 9:16 
GeneralRe: foolish question , help! Pin
Robert Rohde12-May-05 10:20
Robert Rohde12-May-05 10:20 
GeneralRe: foolish question , help! Pin
S. Senthil Kumar12-May-05 23:26
S. Senthil Kumar12-May-05 23:26 
GeneralRe: foolish question , help! Pin
leppie13-May-05 0:12
leppie13-May-05 0:12 
GeneralRe: foolish question , help! Pin
lgstef16-May-05 3:28
lgstef16-May-05 3:28 
I think the problem stays the same. Here in Foo struct int a, b are initialized with its default values 0. What happens if we want to set "a[0].a = a[0].b = 0"? Then the check a[0].Equals(Foo.Empty) would succeed when its not empty anymore..

I think you need some sentinel value - a special or illegal value. For example you could use -1 as a sentinel. Default int value 0 also would do but you have to be sure that this value won't be treated as legal value.
GeneralRe: foolish question , help! Pin
leppie16-May-05 5:36
leppie16-May-05 5:36 
GeneralRe: foolish question , help! Pin
lgstef16-May-05 5:57
lgstef16-May-05 5:57 
GeneralRe: foolish question , help! Pin
leppie16-May-05 8:02
leppie16-May-05 8:02 
GeneralHTTP Listener Pin
Tridith12-May-05 8:34
Tridith12-May-05 8:34 
GeneralRe: HTTP Listener Pin
Stefan Prodan12-May-05 12:11
Stefan Prodan12-May-05 12:11 
GeneralRe: HTTP Listener Pin
Tridith16-May-05 5:06
Tridith16-May-05 5:06 
General2 problems Pin
x-trate12-May-05 7:55
x-trate12-May-05 7:55 
GeneralRe: 2 problems Pin
Luis Alonso Ramos12-May-05 8:37
Luis Alonso Ramos12-May-05 8:37 
QuestionHow to change MAC address? Pin
Stefan Prodan12-May-05 7:52
Stefan Prodan12-May-05 7:52 
AnswerRe: How to change MAC address? Pin
Michael A. Barnhart12-May-05 11:31
Michael A. Barnhart12-May-05 11:31 
GeneralRe: How to change MAC address? Pin
Stefan Prodan12-May-05 12:02
Stefan Prodan12-May-05 12:02 
GeneralRe: How to change MAC address? Pin
Dave Kreskowiak12-May-05 14:09
mveDave Kreskowiak12-May-05 14:09 
GeneralSharing statics across AppDomains Pin
S. Senthil Kumar12-May-05 7:46
S. Senthil Kumar12-May-05 7:46 
GeneralThread Stop Exception Pin
Adnan Siddiqi12-May-05 7:19
Adnan Siddiqi12-May-05 7:19 
GeneralRe: Thread Stop Exception Pin
Daniel Grunwald12-May-05 10:14
Daniel Grunwald12-May-05 10:14 
GeneralRe: Thread Stop Exception Pin
nyjetswin200512-May-05 12:17
nyjetswin200512-May-05 12:17 
GeneralAfterLabelEdit event for listview ctl Pin
poniatow12-May-05 5:51
poniatow12-May-05 5:51 

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.