Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Wrong color used for non-enum values in .cs

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
rhinology 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.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 11 2009 : 2:33:09 PM
Currently this is a known limitation, and to a degree it is by design:

case=1220

See the "Coloring by Usage" section here:

http://www.wholetomato.com/products/features/color.asp

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000