Hi,
I can't figure out the correct sytax for the following:
public interface IRepository<T,E> where T E: class
Looked a lot online, but articles don't seem to cover two classes.
Thank you
Hi,
I can't figure out the correct sytax for the following:
public interface IRepository<T,E> where T E: class
Looked a lot online, but articles don't seem to cover two classes.
Thank you
From the "Constraining Multiple Parameters" section of Constraints on Type Parameters (MSDN):
public interface IRepository<T, E>
where T : class
where E : class