Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGridView - RowFocus Pin
nelsonpaixao6-Aug-08 14:19
nelsonpaixao6-Aug-08 14:19 
Questionstruct and null Pin
DaveyM695-Aug-08 11:28
professionalDaveyM695-Aug-08 11:28 
AnswerRe: struct and null Pin
MidwestLimey5-Aug-08 12:06
professionalMidwestLimey5-Aug-08 12:06 
AnswerRe: struct and null Pin
Colin Angus Mackay5-Aug-08 12:08
Colin Angus Mackay5-Aug-08 12:08 
GeneralRe: struct and null Pin
DaveyM695-Aug-08 12:30
professionalDaveyM695-Aug-08 12:30 
GeneralRe: struct and null Pin
MidwestLimey5-Aug-08 12:44
professionalMidwestLimey5-Aug-08 12:44 
GeneralRe: struct and null Pin
DaveyM695-Aug-08 12:40
professionalDaveyM695-Aug-08 12:40 
AnswerRe: struct and null Pin
Ed.Poore5-Aug-08 12:28
Ed.Poore5-Aug-08 12:28 
I'll second Colin's suggestion (use the Nullable type).  I just thought I'd explain how it works, essentially the nullable operator (?) in C# is syntatic sugar like LINQ which tells the compiler to change:
int? myInt; // to
Nullable<int> myInt;
Nullable is a class defined in the System namespace and has two properties, Value and HasValue (almost exactly what you're suggesting implementing), however the operators are already implemented so for most cases you can forget you're dealing with a nullable type (just remember to perform null checks).



GeneralRe: struct and null Pin
DaveyM695-Aug-08 12:38
professionalDaveyM695-Aug-08 12:38 
GeneralRe: struct and null Pin
Colin Angus Mackay5-Aug-08 12:43
Colin Angus Mackay5-Aug-08 12:43 
GeneralRe: struct and null Pin
Colin Angus Mackay5-Aug-08 12:45
Colin Angus Mackay5-Aug-08 12:45 
GeneralRe: struct and null Pin
DaveyM697-Aug-08 1:03
professionalDaveyM697-Aug-08 1:03 
GeneralRe: struct and null Pin
Colin Angus Mackay7-Aug-08 2:00
Colin Angus Mackay7-Aug-08 2:00 
AnswerRe: struct and null Pin
PIEBALDconsult5-Aug-08 17:01
mvePIEBALDconsult5-Aug-08 17:01 
GeneralRe: struct and null Pin
DaveyM697-Aug-08 1:03
professionalDaveyM697-Aug-08 1:03 
QuestionMonitoring system useage preformance Pin
Scalee5-Aug-08 9:49
Scalee5-Aug-08 9:49 
QuestionRe: Monitoring system useage preformance Pin
led mike5-Aug-08 10:28
led mike5-Aug-08 10:28 
AnswerRe: Monitoring system useage preformance Pin
Dan Neely5-Aug-08 10:39
Dan Neely5-Aug-08 10:39 
GeneralRe: Monitoring system useage preformance Pin
Scalee5-Aug-08 10:51
Scalee5-Aug-08 10:51 
GeneralRe: Monitoring system useage preformance Pin
Mark Churchill5-Aug-08 14:44
Mark Churchill5-Aug-08 14:44 
AnswerRe: Monitoring system useage preformance Pin
MarkB7775-Aug-08 14:33
MarkB7775-Aug-08 14:33 
QuestionHow to use "SELECT" statement on DataTables [modified] Pin
Verghese5-Aug-08 9:24
Verghese5-Aug-08 9:24 
AnswerRe: How to use "SELECT" statement on DataTables Pin
Wendelius5-Aug-08 9:36
mentorWendelius5-Aug-08 9:36 
GeneralRe: How to use "SELECT" statement on DataTables Pin
Verghese5-Aug-08 10:02
Verghese5-Aug-08 10:02 
GeneralRe: How to use "SELECT" statement on DataTables Pin
Wendelius5-Aug-08 10:13
mentorWendelius5-Aug-08 10:13 

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.