rhinology
Junior Member
10 Posts |
Posted - Jul 09 2009 : 2:46:56 PM
|
In C#, when a symbol is defined in enum, it should only be shown as enum in its scope. Outside the enum scope, same symbol means different things. For example: 1 using System; 2 enum MyEnum { System }; 3 MyEnum myValue = MyEnum.System; "System" on line 1 should be shown using color for namespace, while System on line 2 and line 3 should be shown as enum value.
Currently VA will show System on line 1 as enum value (using Preprocessor macros color).
Note: C/C++ has a different rule, so VA should treat C/C++ and C# differently. |
|