Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1632: coloring problem with generics

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
Uniwares Posted - Apr 17 2008 : 09:24:34 AM
VS2005, C#

A generic classes parameters are colored wrong, or better, not colored at all. They appear simply as black, undecorated text. I feel that the parameter should be colored as a type although, even unknown.

e.g.:
public abstract class BaseService<SessionType> : IService where SessionType : BaseSession
{
  public void func1()
  {
    SessionType session = func2();
  }

  public SessionType func2() { return new SessionType(); }
}
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 18 2008 : 08:05:26 AM
I am seeing the same effect here. Thank you for the clear description.

case=16122

This is actually a regression, it works correctly in VA 1626.

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