Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
AnswerRe: Are C# versions tied to the IDE? Pin
Clifford Nelson1-Oct-12 12:24
Clifford Nelson1-Oct-12 12:24 
GeneralRe: Are C# versions tied to the IDE? Pin
Member 86976872-Oct-12 2:23
Member 86976872-Oct-12 2:23 
Questionfloat from bytes Pin
__John_1-Oct-12 1:01
__John_1-Oct-12 1:01 
AnswerRe: float from bytes Pin
OriginalGriff1-Oct-12 1:09
mveOriginalGriff1-Oct-12 1:09 
AnswerMessage Closed Pin
1-Oct-12 1:30
professionalAmarnath S1-Oct-12 1:30 
GeneralRe: float from bytes Pin
__John_1-Oct-12 1:55
__John_1-Oct-12 1:55 
GeneralRe: float from bytes Pin
BobJanova1-Oct-12 6:24
BobJanova1-Oct-12 6:24 
QuestionDraggable dynamic controls Pin
Shashank Srivastava1)1-Oct-12 0:52
Shashank Srivastava1)1-Oct-12 0:52 
AnswerRe: Draggable dynamic controls Pin
Kenneth Haugland1-Oct-12 0:59
mvaKenneth Haugland1-Oct-12 0:59 
GeneralRe: Draggable dynamic controls Pin
Shashank Srivastava1)1-Oct-12 1:08
Shashank Srivastava1)1-Oct-12 1:08 
GeneralRe: Draggable dynamic controls Pin
Shashank Srivastava1)1-Oct-12 2:07
Shashank Srivastava1)1-Oct-12 2:07 
GeneralRe: Draggable dynamic controls Pin
Pete O'Hanlon1-Oct-12 3:56
mvePete O'Hanlon1-Oct-12 3:56 
QuestionRead structured text file to listview in C #? Pin
Member 245846730-Sep-12 23:10
Member 245846730-Sep-12 23:10 
AnswerRe: Read structured text file to listview in C #? Pin
Smart Arab30-Sep-12 23:19
Smart Arab30-Sep-12 23:19 
AnswerRe: Read structured text file to listview in C #? Pin
Eddy Vluggen1-Oct-12 1:01
professionalEddy Vluggen1-Oct-12 1:01 
QuestionC# linq issue Pin
classy_dog30-Sep-12 20:00
classy_dog30-Sep-12 20:00 
AnswerRe: C# linq issue Pin
Pete O'Hanlon30-Sep-12 20:15
mvePete O'Hanlon30-Sep-12 20:15 
AnswerRe: C# linq issue Pin
DaveyM6930-Sep-12 22:54
professionalDaveyM6930-Sep-12 22:54 
FirstOrDefault is your clue. If not found, it will return the default value for DateTime which is DateTime.MinValue.

Use:
C#
if (complete_date != DateTime.MinValue)

Or
C#
if (complete_date != default(DateTime))

instead.

null is default for reference types such as classes and interfaces, for value types such as structs there is normally a static readonly field or property available such as MinValue or Empty, or you can use the parameterless constructor to get the default, or default(...) as above.
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



AnswerRe: C# linq issue Pin
John Brett2-Oct-12 6:14
John Brett2-Oct-12 6:14 
QuestionHow to store string queries in c# function Pin
nitin_ion30-Sep-12 17:52
nitin_ion30-Sep-12 17:52 
AnswerRe: How to store string queries in c# function Pin
Pete O'Hanlon30-Sep-12 19:33
mvePete O'Hanlon30-Sep-12 19:33 
QuestionC# 2008 update sql server table Pin
dcof30-Sep-12 14:19
dcof30-Sep-12 14:19 
QuestionQuartzTypeLib and subtitles Pin
audaijihad30-Sep-12 6:22
audaijihad30-Sep-12 6:22 
AnswerRe: QuartzTypeLib and subtitles Pin
Ravi Bhavnani30-Sep-12 6:47
professionalRavi Bhavnani30-Sep-12 6:47 
GeneralRe: QuartzTypeLib and subtitles Pin
audaijihad30-Sep-12 11:33
audaijihad30-Sep-12 11:33 

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.