This is a migrated thread and some comments may be shown as answers.

Decompiled code bug?

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 17 Jun 2014, 12:02 AM
I was looking at the .NET framework TimerQueueTimer.Close(WaitHandle) function and noticed that it checks a boolean for null.  Since bool is a value type, this doesn't make much sense.

if (this.m_canceled == null)

I verified with Microsoft's Reference Source (http://referencesource.microsoft.com/#mscorlib/system/threading/timer.cs#3fbf25b1429bc310#references) and it appropriately checks the bool for true/false.

if (m_canceled)


1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 17 Jun 2014, 03:02 PM
Hello David,

Indeed there's a bug in JustDecompile. I've logged it and updated your Telerik points as an appreciation for your help. Thanks for your feedback!

Kind regards,
Vladi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or