Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1555: VA Outline and Generic class with where

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
brian_winfield Posted - May 19 2007 : 5:02:31 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 20 2007 : 2:46:34 PM
Assuming you are using C# then I am seeing the same thing here:

case=6681
brian_winfield Posted - May 19 2007 : 5:04:04 PM
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


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