Click here to Skip to main content
15,888,454 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Convert a string to delegate Pin
_Erik_28-Dec-10 3:48
_Erik_28-Dec-10 3:48 
AnswerRe: Convert a string to delegate Pin
Espen Harlinn2-Jan-11 0:52
professionalEspen Harlinn2-Jan-11 0:52 
QuestionNot able to connect VS 2008 and SQL Server2000 Pin
saksp23-Dec-10 18:24
saksp23-Dec-10 18:24 
AnswerRe: Not able to connect VS 2008 and SQL Server2000 Pin
T210224-Dec-10 2:41
T210224-Dec-10 2:41 
QuestionUse Gruop By in Datatable.Compute() method Pin
Naunt22-Dec-10 22:54
Naunt22-Dec-10 22:54 
AnswerRe: Use Gruop By in Datatable.Compute() method Pin
TweakBird23-Dec-10 0:52
TweakBird23-Dec-10 0:52 
AnswerRe: Use Gruop By in Datatable.Compute() method Pin
Manish Choudhary .NET expert27-Dec-10 20:25
Manish Choudhary .NET expert27-Dec-10 20:25 
QuestionCompiler question Pin
_Zorro_21-Dec-10 23:30
professional_Zorro_21-Dec-10 23:30 
Hello,

Today I've noticed something interesting to me and I'd like to understand.

Let's say I have a function like this one:
public enum SomeEnum
{
    Value1 = 0,
    Value2 = 1
}

public void DoSomething(SomeEnum theEnum)
{
    if(theEnum == SomeEnum.Value1)
        return;
}


When I build the project which is a ClassLibrary in Debug mode the compiler translates that to:
public void DoSomething(SomeEnum theEnum)
{
    if(theEnum == 0)
    {
        return;
    }
}


But when I build the same project in Release mode the result is:
public void DoSomething(SomeEnum theEnum)
{
    if(theEnum == null)
    {
        return;
    }
}


This seems to happen only when the Enum has two values.

Anyone?
Thanks.
AnswerRe: Compiler question Pin
Luc Pattyn22-Dec-10 1:46
sitebuilderLuc Pattyn22-Dec-10 1:46 
GeneralRe: Compiler question Pin
_Zorro_28-Dec-10 2:58
professional_Zorro_28-Dec-10 2:58 
AnswerRe: Compiler question Pin
T210223-Dec-10 12:51
T210223-Dec-10 12:51 
GeneralRe: Compiler question Pin
_Zorro_28-Dec-10 2:59
professional_Zorro_28-Dec-10 2:59 
QuestionReturn TreeNode Control in .NET Remoting Pin
ganesh_IT21-Dec-10 23:07
ganesh_IT21-Dec-10 23:07 
QuestionWhy is my AnyCPU program forced to 32-bit? Pin
Geron21-Dec-10 2:54
Geron21-Dec-10 2:54 
AnswerRe: Why is my AnyCPU program forced to 32-bit? Pin
fjdiewornncalwe21-Dec-10 4:18
professionalfjdiewornncalwe21-Dec-10 4:18 
GeneralRe: Why is my AnyCPU program forced to 32-bit? Pin
harold aptroot21-Dec-10 23:42
harold aptroot21-Dec-10 23:42 
AnswerRe: Why is my AnyCPU program forced to 32-bit? Pin
Eddy Vluggen21-Dec-10 4:46
professionalEddy Vluggen21-Dec-10 4:46 
QuestionGet Youtube video streams Pin
User 584223718-Dec-10 8:44
User 584223718-Dec-10 8:44 
AnswerRe: Get Youtube video streams Pin
Not Active18-Dec-10 8:58
mentorNot Active18-Dec-10 8:58 
GeneralRe: Get Youtube video streams Pin
User 584223718-Dec-10 9:06
User 584223718-Dec-10 9:06 
QuestionComparing text Pin
Soulus8315-Dec-10 5:43
Soulus8315-Dec-10 5:43 
AnswerRe: Comparing text Pin
Luc Pattyn15-Dec-10 6:19
sitebuilderLuc Pattyn15-Dec-10 6:19 
AnswerRe: Comparing text Pin
Paladin200016-Dec-10 7:55
Paladin200016-Dec-10 7:55 
QuestionPrinting pdf files in batch using VB.net Pin
Saiju Menon14-Dec-10 19:28
Saiju Menon14-Dec-10 19:28 
AnswerRe: Printing pdf files in batch using VB.net Pin
_Erik_15-Dec-10 4:23
_Erik_15-Dec-10 4:23 

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.