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
 1555: VA Outline and Generic class with where
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

brian_winfield
Senior Member

USA
33 Posts

Posted - May 19 2007 :  5:02:31 PM  Show Profile  Reply with Quote
VA Outline is not showing the correct class name in the treeview if the class is using generics with a where clause.

Create a class

public class Foo<T>
where T : int
{
}

VA Outline will show T : int as the class name instead of Foo

Brian S Winfield

brian_winfield
Senior Member

USA
33 Posts

Posted - May 19 2007 :  5:04:04 PM  Show Profile  Reply with Quote
This also applies to generic methods

public bool IsValid<T>() where T : int
{
return false;
}

This also is shown as T : int as the name of the method in the Outline


Brian S Winfield
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - May 20 2007 :  2:46:34 PM  Show Profile  Reply with Quote
Assuming you are using C# then I am seeing the same thing here:

case=6681

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