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
 [C#] 1274: Coloring of enums slightly wrong
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

draza
Senior Member

France
48 Posts

Posted - Oct 15 2004 :  05:30:31 AM  Show Profile
This is not a duplicate - previous post was about C++ enums.

enums are not the same in C# as in C++. There are no anonymous enums in C#, so in case like this:
enum NotCpp { Strange, Behavior, Encountered }
if you want to reference any of the enum values, you have to say NotCpp.Strange and not just Strange.

VA.X seems to treat enums the same as in C++, so it colors them as if it's possible to use the form without type prefix (just Storage) which poses a problem when I have a property which is called exactly the same:
// inside some class X
private Int32 _strange;
public Int32 Strange
{
  get { return _strange; }
}

Various strange things happen - either enum and property are both colored as enum, both as member (property is just a special member), or both are black (unknown).

Again, this is slight annoyance, but would be nice if fixed.

This problem when solved will be simple

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Oct 17 2004 :  5:08:43 PM  Show Profile
case=379

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