Invalid C# statement

Explore, browse and analyze .NET assemblies

Invalid C# statement

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


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:

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

I check previous version an the problem is also present.
Posts: 2
Joined: Fri Feb 04, 2011 12:35 pm

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

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

Return to .NET Reflector 7 EAP

Who is online

Users browsing this forum: No registered users and 0 guests