Red Gate forums :: View topic - Invalid C# statement
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.NET Reflector 7 EAP
.NET Reflector 7 EAP forum

Invalid C# statement

Search in .NET Reflector 7 EAP forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
nmgomes



Joined: 04 Feb 2011
Posts: 2

PostPosted: Fri Feb 11, 2011 1:13 am    Post subject: Invalid C# statement Reply with quote

Hi,

If you look at method private void NormalizePercentStyle(bool normalizeRow);
from type "System.Windows.Forms.Design.StyleCollectionEditor+StyleEditorForm, System.Design" with C# language selected you will see the following piece of code:

Code:
    float num2 = 0f;
    [...]
    switch (num2)
    {
        case 100f:
        case 0f:
            return;
    }


throws a compilation error since float values are not valid for switch statements.

I check previous version an the problem is also present.
Back to top
View user's profile Send private message
Clive Tong



Joined: 04 Dec 2008
Posts: 283

PostPosted: Fri Feb 11, 2011 10:01 am    Post subject: Reply with quote

Thanks for reporting this. I've logged it as issue RP-1038.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group