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: C# Issue with VA Outline and generics
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

brian_winfield
Senior Member

USA
33 Posts

Posted - Apr 23 2008 :  11:31:17 AM  Show Profile  Reply with Quote
Create the following code


 public class Identity 
    {

    }

    public interface IData
    {

    }

    public interface IRepository<D,I>
        where I : Identity
        where D : IData
    {
        D Retrieve(I identity);


    }


The VA Outline looks like this:

Common.Business.Repository
     Identity
     IData
     I:Identity
         Retrieve(I identity)


It's getting confused by the Generics in the interface. The "I:Identity" should be "IRepository<D,I>"

VA View is also having problems with the code as well. It is showing an IRepository interface and a IRepository<D,I> interface in the list. (I don't have just an IRepository interface)




Brian S Winfield

Edited by - brian_winfield on Apr 23 2008 11:35:26 AM

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Apr 23 2008 :  5:08:29 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

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