C
Chris LaJoie
Our company has been developing a program in C# for some time now, and we
haven't had any problems with it, but just last night something cropped up
that has me, and everyone else, stumped.
I have a struct that contains several different types of data. This struct
is used throuout the program. Now, when I compile, I get 6 errors, all of
them "Use of possibly unassigned field 'awayTime'" or "Use of possibly
unassigned field 'intlTime'". It is correct, it is possible that these
fields aren't assigned, but I don't care. It's inside of a struct, and
everything inside of a struct gets assigned its default value anyway.
This is difficult to explain, but if anyone else has had this problem and
fixed it, i'd love to know how. Thanks.
Chris LaJoie
haven't had any problems with it, but just last night something cropped up
that has me, and everyone else, stumped.
I have a struct that contains several different types of data. This struct
is used throuout the program. Now, when I compile, I get 6 errors, all of
them "Use of possibly unassigned field 'awayTime'" or "Use of possibly
unassigned field 'intlTime'". It is correct, it is possible that these
fields aren't assigned, but I don't care. It's inside of a struct, and
everything inside of a struct gets assigned its default value anyway.
This is difficult to explain, but if anyone else has had this problem and
fixed it, i'd love to know how. Thanks.
Chris LaJoie