How can I design generic methods

Hi,

can everyone tell me how I can design generic methods in VP?
For example:


public interface IDataContext : IDisposable
{
  IList<T> GetAll<T>() where T : class, new();
}

Hi Snmp,

Thanks for your post. Please find a sample project attached for designing generic by template parameter, hope this helps.

Best regards,
Lilian Wong
TemplateParameter.vpp

Hi, Lilian,
How can i draw UML where T: class, new()
can you show me image ?