Click here to Skip to main content
15,895,709 members
Home / Discussions / C#
   

C#

 
AnswerRe: capturing keystrokes in windows service Pin
Manas Bhardwaj29-Jan-09 23:57
professionalManas Bhardwaj29-Jan-09 23:57 
GeneralRe: capturing keystrokes in windows service Pin
Mubeen.asim29-Jan-09 23:59
Mubeen.asim29-Jan-09 23:59 
GeneralRe: capturing keystrokes in windows service Pin
PIEBALDconsult30-Jan-09 7:06
mvePIEBALDconsult30-Jan-09 7:06 
GeneralRe: capturing keystrokes in windows service Pin
Mubeen.asim30-Jan-09 7:10
Mubeen.asim30-Jan-09 7:10 
GeneralRe: capturing keystrokes in windows service Pin
PIEBALDconsult30-Jan-09 7:11
mvePIEBALDconsult30-Jan-09 7:11 
GeneralRe: capturing keystrokes in windows service Pin
Mubeen.asim30-Jan-09 7:14
Mubeen.asim30-Jan-09 7:14 
AnswerRe: capturing keystrokes in windows service Pin
musefan29-Jan-09 23:58
musefan29-Jan-09 23:58 
QuestionNullable Structs? Pin
musefan29-Jan-09 23:34
musefan29-Jan-09 23:34 
Hi All,

I have a struct that contains data such as ID, Name etc.

I have a List of instances of that struct.

I then have a method which returns a struct from the list based on an ID value pased as a parameter.

But my problem is if the id does not match any of the structs in the list I would like to return a Null value. Any ideas how to get around this?

I have thought to have a bool property in the struct that states if null or not null, but i would ideally prefer to return a null value rather then create an empty struct with only IsNull = true set and then returning that.

Thanks for any advice offered
AnswerRe: Nullable Structs? Pin
Mirko198029-Jan-09 23:43
Mirko198029-Jan-09 23:43 
GeneralRe: Nullable Structs? Pin
musefan29-Jan-09 23:51
musefan29-Jan-09 23:51 
GeneralRe: Nullable Structs? Pin
Mirko198030-Jan-09 0:51
Mirko198030-Jan-09 0:51 
GeneralRe: Nullable Structs? Pin
musefan30-Jan-09 1:01
musefan30-Jan-09 1:01 
GeneralRe: Nullable Structs? Pin
Mirko198030-Jan-09 1:24
Mirko198030-Jan-09 1:24 
AnswerRe: Nullable Structs? [modified] Pin
Luc Pattyn30-Jan-09 3:16
sitebuilderLuc Pattyn30-Jan-09 3:16 
AnswerRe: Nullable Structs? Pin
PIEBALDconsult30-Jan-09 7:10
mvePIEBALDconsult30-Jan-09 7:10 
GeneralDisplay Image Using Webservice and JavaScript Pin
justindhas29-Jan-09 23:03
justindhas29-Jan-09 23:03 
GeneralRe: Display Image Using Webservice and JavaScript Pin
Manas Bhardwaj29-Jan-09 23:28
professionalManas Bhardwaj29-Jan-09 23:28 
GeneralRe: Display Image Using Webservice and JavaScript Pin
justindhas29-Jan-09 23:35
justindhas29-Jan-09 23:35 
Questionstarting windows service from windows form Pin
Mubeen.asim29-Jan-09 21:46
Mubeen.asim29-Jan-09 21:46 
AnswerRe: starting windows service from windows form Pin
Spunky Coder29-Jan-09 21:59
Spunky Coder29-Jan-09 21:59 
GeneralRe: starting windows service from windows form Pin
Mubeen.asim29-Jan-09 22:07
Mubeen.asim29-Jan-09 22:07 
Questionhow to Call values from An ARRAY like method. I have some configuration inside an array list. how can i call those values and declare?? Pin
Aghosh Babu29-Jan-09 21:37
Aghosh Babu29-Jan-09 21:37 
AnswerRe: how to Call values from An ARRAY like method. I have some configuration inside an array list. how can i call those values and declare?? Pin
Spunky Coder29-Jan-09 21:46
Spunky Coder29-Jan-09 21:46 
AnswerRe: how to Call values from An ARRAY like method. I have some configuration inside an array list. how can i call those values and declare?? Pin
SeMartens29-Jan-09 21:47
SeMartens29-Jan-09 21:47 
AnswerRe: how to Call values from An ARRAY like method. I have some configuration inside an array list. how can i call those values and declare?? Pin
Najmal29-Jan-09 22:03
Najmal29-Jan-09 22:03 

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.