Last post Sep 27, 2012 09:07 PM by anderson7777
Sep 27, 2012 07:43 PM|anderson7777|LINK
I have this class
public class GenericRepository<TEntity> where TEntity : class
I wanna implement a derived class with TEntity=int. How do i make the declaration?]
Sep 27, 2012 08:45 PM|Paul Linton|LINK
You can't. TEntity has to be a class, that's what the constraint means. int is not a class.
Sep 27, 2012 08:53 PM|anderson7777|LINK
I am not sure if i asked right.
I need an class derived from this GenericRepository<TEntity> so i can overload some methods;
Sep 27, 2012 09:03 PM|Paul Linton|LINK
class CustomerRepository : GenericRepository<Customer>
Sep 27, 2012 09:07 PM|anderson7777|LINK
thx a lot dude