Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Missing info in navigation bar for enum value (C#)

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
horeaper Posted - May 03 2016 : 07:44:28 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 04 2016 : 1:05:19 PM
Ah, interesting, and that makes sense. My first set of google searches did not turn this up, obviously using the wrong search terms.
sean Posted - May 03 2016 : 8:40:58 PM
In C#, when @ is used as a prefix, you are allowed to use reserved keywords as identifiers. case=96929
feline Posted - May 03 2016 : 7:28:02 PM
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.

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