Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 coloring problem when casting a variable in 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
alexhe Posted - Jan 17 2008 : 01:06:55 AM
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!
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 18 2008 : 11:54:24 AM
I am seeing the same effect here. Thank you for the clear description.

case=11540
alexhe Posted - Jan 17 2008 : 9:59:10 PM
> 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!
feline Posted - Jan 17 2008 : 09:37:22 AM
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?

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