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
 coloring problem when casting a variable in c#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alexhe
New Member

6 Posts

Posted - Jan 17 2008 :  01:06:55 AM  Show Profile  Reply with Quote
VA version: 10.4.1624

I have coloring setting enabled, but when I type this

void Foo(...)
{
IoSession session = variable.Property as IoSession;
}
The color for Property is incorrect, suppose to be grey but became blue.
Yes, it's a very minor one but hopefully it could be fixed in the future version. Thanks!

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 17 2008 :  09:37:22 AM  Show Profile  Reply with Quote
is "variable.Property" coloured correctly outside of a cast? Or does this problem only show up inside a cast?
Does this problem only show up with "Property", or does it show up for other class members as well?

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

alexhe
New Member

6 Posts

Posted - Jan 17 2008 :  9:59:10 PM  Show Profile  Reply with Quote
> is "variable.Property" coloured correctly outside of a cast? Or does this problem only show up inside a cast?
Yes, it's colored correctly outside a cast.
Does this problem only show up with "Property", or does it show up for other class members as well?
The problem occurs for any variable when you do casting.
e.g.
int foo;
object o = foo as object;
foo is colored blue, just like a keyword.
I think the issue exists in every "as" casting for C#.

Environment: Visual Studio 2008 RTM, VA version 10.4.1624, C#, coloring enabled using default settings.
Hope this helps!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 18 2008 :  11:54:24 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=11540

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