Invalid C# statement

Explore, browse and analyze .NET assemblies

Moderators: Luke Jefferson, Clive Tong, nick.maidment

Invalid C# statement

Postby nmgomes » Fri Feb 11, 2011 1:13 am

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: Select all
    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.
nmgomes
 
Posts: 2
Joined: Fri Feb 04, 2011 1:35 pm

Postby Clive Tong » Fri Feb 11, 2011 10:01 am

Thanks for reporting this. I've logged it as issue RP-1038.
Clive Tong
 
Posts: 283
Joined: Thu Dec 04, 2008 5:42 pm


Return to .NET Reflector 7 EAP

Who is online

Users browsing this forum: No registered users and 1 guest