Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Wrong color used for non-enum values in .cs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rhinology
Junior Member

10 Posts

Posted - Jul 09 2009 :  2:46:56 PM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Jul 11 2009 :  2:33:09 PM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000