私はファクトリパターンのこの実装を持っています
public interface IFactory<T>
{
    T GetObject();
}
public class Factory<T> : IFactory<T> where T : new()
{
    public T GetObject()
    {
        return new T();
    }
}
GetObjectしかし、ジェネリッククラスRepository<Customer>( )のインスタンスを返したいのですがRepository implement IRepository、ファクトリには引数(ISessionタイプ)があります
結果は次のようになります。
IRepository<ICustomer> myRepo = new Factory<ICustomer>(session);
これどうやってするの ?
ありがとう、