public class Repository<T> where T : class{}
public class Repository<T> where T : class, IDisposable {}
public class Repository<T> : IDisposable where T : class { #region IDisposable Member public void Dispose() { throw new NotImplementedException(); } #endregion }