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
 1632: coloring problem with generics
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Apr 17 2008 :  09:24:34 AM  Show Profile  Reply with Quote
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(); }
}

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Apr 18 2008 :  08:05:26 AM  Show Profile  Reply with Quote
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.

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