Hello
I'm trying to do the following:
List<IRepository<IBusinessObject, ICriteria>> Repositories { get; }
and call this by
IRepository<ICustomer, ICustomerCriteria> cr = new CustomerRepository();
List.Add(CustomerRepository);
where ICustomer and ICustomerCriteria descend from IBusinessObject and ICriteria respectively.
However, this is not liked by the compiler.
Hmmm, I know I'm pushing it a bit, but I thought this would work? Anyone know why?
Thanks Duncan