Click here to Skip to main content
15,891,704 members
Home / Discussions / C#
   

C#

 
AnswerRe: Destroy class Pin
Not Active13-Feb-10 7:31
mentorNot Active13-Feb-10 7:31 
AnswerRe: Destroy class Pin
Luc Pattyn13-Feb-10 11:33
sitebuilderLuc Pattyn13-Feb-10 11:33 
QuestionExecuting an EXE 24hr online Pin
Gjm13-Feb-10 4:56
Gjm13-Feb-10 4:56 
AnswerRe: Executing an EXE 24hr online Pin
Saksida Bojan13-Feb-10 5:10
Saksida Bojan13-Feb-10 5:10 
AnswerRe: Executing an EXE 24hr online Pin
Anurag Gandhi13-Feb-10 6:44
professionalAnurag Gandhi13-Feb-10 6:44 
AnswerDon't repost Pin
Not Active13-Feb-10 7:34
mentorNot Active13-Feb-10 7:34 
QuestionC# nullable types, need clarification Pin
prasadbuddhika13-Feb-10 4:32
prasadbuddhika13-Feb-10 4:32 
AnswerRe: C# nullable types, need clarification [modified] Pin
Saksida Bojan13-Feb-10 4:44
Saksida Bojan13-Feb-10 4:44 
If both are null, operator >= can't compare, because it doesn't have value.

prasadbuddhika wrote:
as i read if you compare two nullable types that both are having null it should be true

I think if you compares with operator == (Equal) it would be true, because both would be equal.

prasadbuddhika wrote:
ut i get the false (as in the code "x is less than y " )

if first block is false then your else block would run instead. However what you want is use this:

if (x > y) // In your example you used operator >= as in "x is greater or equal than y"
{
      Console.WriteLine("x is greater than y ");
}
else if (x < y)
{
      Console.WriteLine("x is less than y ");
}


Eidt: Forgot pre tags
modified on Saturday, February 13, 2010 11:01 AM

AnswerRe: C# nullable types, need clarification Pin
Luc Pattyn13-Feb-10 5:23
sitebuilderLuc Pattyn13-Feb-10 5:23 
AnswerRe: C# nullable types, need clarification Pin
Alan N13-Feb-10 5:32
Alan N13-Feb-10 5:32 
GeneralRe: C# nullable types, need clarification Pin
Luc Pattyn13-Feb-10 6:21
sitebuilderLuc Pattyn13-Feb-10 6:21 
GeneralRe: C# nullable types, need clarification Pin
Alan N13-Feb-10 8:15
Alan N13-Feb-10 8:15 
AnswerRe: C# nullable types, need clarification Pin
Luc Pattyn13-Feb-10 10:26
sitebuilderLuc Pattyn13-Feb-10 10:26 
AnswerRe: C# nullable types, need clarification Pin
Luc Pattyn13-Feb-10 11:03
sitebuilderLuc Pattyn13-Feb-10 11:03 
GeneralRe: C# nullable types, need clarification Pin
prasadbuddhika14-Feb-10 16:38
prasadbuddhika14-Feb-10 16:38 
QuestionDrag form by panel Pin
Scalee13-Feb-10 3:29
Scalee13-Feb-10 3:29 
AnswerRe: Drag form by panel Pin
Saksida Bojan13-Feb-10 3:33
Saksida Bojan13-Feb-10 3:33 
Questionplease help me i want to file send Pin
Member 339178813-Feb-10 2:45
Member 339178813-Feb-10 2:45 
AnswerRe: please help me i want to file send Pin
Saksida Bojan13-Feb-10 3:06
Saksida Bojan13-Feb-10 3:06 
GeneralRe: please help me i want to file send Pin
Member 339178813-Feb-10 4:35
Member 339178813-Feb-10 4:35 
GeneralRe: please help me i want to file send Pin
Saksida Bojan13-Feb-10 5:01
Saksida Bojan13-Feb-10 5:01 
GeneralRe: please help me i want to file send Pin
Member 339178814-Feb-10 20:12
Member 339178814-Feb-10 20:12 
Questioninvoice form design Pin
sudhir behera13-Feb-10 1:01
sudhir behera13-Feb-10 1:01 
AnswerRe: invoice form design Pin
Saksida Bojan13-Feb-10 1:18
Saksida Bojan13-Feb-10 1:18 
GeneralRe: invoice form design Pin
sudhir behera13-Feb-10 1:21
sudhir behera13-Feb-10 1:21 

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.