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
 Missing info in navigation bar for enum value (C#)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

horeaper
Senior Member

Singapore
49 Posts

Posted - May 03 2016 :  07:44:28 AM  Show Profile  Reply with Quote
Giving code:

enum KeywordType
{
    @abstract,
    @as,
    @base,
    @bool,
    //and much more...
}

And usage:

var token = KeywordType.@abstract;

Move the cursor to "@abstract" part (definition or usage), no info is shown in the VA Navigation Bar.
Coloring won't work, too.
Tooltip works, but I'm pretty sure that's Visual Studio's tooltip.

Another example:

enum PreprocessorType
{
    @define,
    @undef,
    //and much more...
}

var token = PreprocessorType.define;

As you can see, the "@" is completely optional here, but info and coloring still won't on both the definition and usage.
It will work after I remove the "@" from PreprocessorType's definition.

It doesn't matter if the "Enable in C#" in Options->Suggestions is checked or not.

Environment:
VA Version: 10.9.2094
Visual Studio 2015 with Update 2
Windows 10 64bit

My life for Aiur!!!

Edited by - horeaper on May 03 2016 07:50:58 AM

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - May 03 2016 :  7:28:02 PM  Show Profile  Reply with Quote
What is the point of the @ in the enum? I don't recognise this syntax?

I am also seeing the lack of colour, but testing VS2015 on a machine where VA has never been installed, VS2015 colours enum items its self, but not if they start with an @, so what ever this is, the IDE its self seems to have some problems properly supporting it.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - May 03 2016 :  8:40:58 PM  Show Profile  Reply with Quote
In C#, when @ is used as a prefix, you are allowed to use reserved keywords as identifiers. case=96929
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - May 04 2016 :  1:05:19 PM  Show Profile  Reply with Quote
Ah, interesting, and that makes sense. My first set of google searches did not turn this up, obviously using the wrong search terms.

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