Click here to Skip to main content
15,923,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and null Structs? Pin
Rodney S. Foley27-Aug-02 18:47
Rodney S. Foley27-Aug-02 18:47 
GeneralRe: C# and null Structs? Pin
leppie27-Aug-02 21:33
leppie27-Aug-02 21:33 
GeneralRe: C# and null Structs? Pin
Rodney S. Foley28-Aug-02 8:18
Rodney S. Foley28-Aug-02 8:18 
GeneralRe: C# and null Structs? Pin
leppie28-Aug-02 8:52
leppie28-Aug-02 8:52 
AnswerRe: C# and null Structs? Pin
Alastair Stell27-Aug-02 21:52
Alastair Stell27-Aug-02 21:52 
GeneralRe: C# and null Structs? Pin
Rodney S. Foley28-Aug-02 7:50
Rodney S. Foley28-Aug-02 7:50 
GeneralRe: C# and null Structs? Pin
Alastair Stell29-Aug-02 4:48
Alastair Stell29-Aug-02 4:48 
GeneralRe: C# and null Structs? Pin
Rodney S. Foley29-Aug-02 9:49
Rodney S. Foley29-Aug-02 9:49 
C# is a hybrid, but they should have left the non-OO stuff just for use with InterOp. They should not have used it in the .NET framework. The other annoying thing is when coding, and I come across a new 'object' that is returned to me from the .NET Framework I do not know if it is a struct, or a object 'object' until I try to do something illegal to one or the other.

When I have to use a struct from the framework I do not use the new keyword any more, so that I know it is a struct. I know that all the books say not to do this that it will be confusing or not look right. Well I say it is less confusing since it show that it is a struct and is a ValueType object, with it's pro's and con's, and should be treated as such.

Why treat one ValueType object different than the others? Should you then use new to create all your int's and float's etc?

I just wish there was a way to tell you are working with a struct when an object hands you one without having to implement any stupid hungarian notation.

It's nice to know that someone else has similar issues, since most of the people responding are more negitive of my comments.

Thanks,

Aalst
GeneralCPropertySheet Pin
candan27-Aug-02 17:11
professionalcandan27-Aug-02 17:11 
GeneralRe: CPropertySheet Pin
James T. Johnson27-Aug-02 17:52
James T. Johnson27-Aug-02 17:52 
GeneralRe: CPropertySheet Pin
candan27-Aug-02 20:06
professionalcandan27-Aug-02 20:06 
GeneralRe: CPropertySheet Pin
James T. Johnson27-Aug-02 20:11
James T. Johnson27-Aug-02 20:11 
GeneralRe: CPropertySheet Pin
leppie27-Aug-02 21:42
leppie27-Aug-02 21:42 
GeneralJames, how do i upload? Pin
leppie27-Aug-02 22:00
leppie27-Aug-02 22:00 
GeneralRe: James, how do i upload? Pin
Mazdak27-Aug-02 22:23
Mazdak27-Aug-02 22:23 
GeneralRe: James, how do i upload? Pin
James T. Johnson28-Aug-02 6:06
James T. Johnson28-Aug-02 6:06 
GeneralMouse Capture Pin
Alex Korchemniy27-Aug-02 15:12
Alex Korchemniy27-Aug-02 15:12 
GeneralRe: Mouse Capture Pin
Alastair Stell27-Aug-02 17:04
Alastair Stell27-Aug-02 17:04 
GeneralError when converting to use UDP Pin
Luis Alonso Ramos27-Aug-02 14:34
Luis Alonso Ramos27-Aug-02 14:34 
GeneralRe: Error when converting to use UDP Pin
Michael Mac28-Aug-02 2:15
Michael Mac28-Aug-02 2:15 
GeneralRe: Error when converting to use UDP Pin
Luis Alonso Ramos28-Aug-02 3:04
Luis Alonso Ramos28-Aug-02 3:04 
GeneralRe: Error when converting to use UDP Pin
Michael Mac28-Aug-02 3:51
Michael Mac28-Aug-02 3:51 
GeneralRe: Error when converting to use UDP Pin
Luis Alonso Ramos28-Aug-02 4:14
Luis Alonso Ramos28-Aug-02 4:14 
GeneralRe: Error when converting to use UDP Pin
Russell Morris28-Aug-02 4:36
Russell Morris28-Aug-02 4:36 
GeneralRe: Error when converting to use UDP Pin
Luis Alonso Ramos28-Aug-02 4:44
Luis Alonso Ramos28-Aug-02 4:44 

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.