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
 "Me" identified as keyword in C# project
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ukitzmann
Junior Member

10 Posts

Posted - May 23 2005 :  05:37:39 AM  Show Profile
Hi,

when typing "m_someVar.Me" in any C# project, "Me" is colored blue.

Regards,
Uwe

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - May 23 2005 :  5:38:32 PM  Show Profile
using .NET 2003 with VA 1301 i have just added the member variable:

private int Me;

to one class. when i reference this in a second class, via the code:

FileIndex test;
test.Me = 0;

"Me" is shown correctly. bold in the first class where it is declared, and simply standard grey when it is referenced.

what version of VAX are you using? are all of your C# projects using a common code base that could be confusing VA? do you have any other addin's installed?

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

ukitzmann
Junior Member

10 Posts

Posted - May 24 2005 :  03:27:24 AM  Show Profile
Ok, what I forgot to mention in my first post is the fact that "m_someVar" has no member "Me" .

What happens in your code example, when you omit the line "private int Me"?

Thanks four your investigation...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - May 24 2005 :  3:10:24 PM  Show Profile
i get the same effect. VA is colouring "Me" in as a "Class, structure of typedef". if you change the colour for this in the VA options then you will see the colour of Me change also.

further if you have "stable symbols in italic" turned on then "Me" is also shown in italics.

since VA does not understand "Me" in the current context it is falling back to the next best match it can find. in this case there is some class or structure somewhere in the libraries VA has parsed called "Me"

you get the same effect now and then in C++ when the code makes no sense

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