Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
QuestionPDF creation library in C sharp Pin
Sudhir Mangla30-Jan-09 0:25
professionalSudhir Mangla30-Jan-09 0:25 
AnswerRe: PDF creation library in C sharp Pin
VoidMainVoid30-Jan-09 0:30
VoidMainVoid30-Jan-09 0:30 
AnswerRe: PDF creation library in C sharp Pin
sw_tech12330-Jan-09 1:02
sw_tech12330-Jan-09 1:02 
GeneralRe: PDF creation library in C sharp Pin
Sudhir Mangla30-Jan-09 1:10
professionalSudhir Mangla30-Jan-09 1:10 
AnswerRe: PDF creation library in C sharp Pin
Sudhir Mangla30-Jan-09 20:02
professionalSudhir Mangla30-Jan-09 20:02 
QuestionWindows Forms/C# - Controls disappear from Design mode of winform. Pin
Member 477535830-Jan-09 0:19
Member 477535830-Jan-09 0:19 
AnswerRe: Windows Forms/C# - Controls disappear from Design mode of winform. Pin
Ankit Rajpoot30-Jan-09 2:23
Ankit Rajpoot30-Jan-09 2:23 
Questioncapturing keystrokes in windows service Pin
Mubeen.asim29-Jan-09 23:52
Mubeen.asim29-Jan-09 23:52 
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 

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.