Possible Duplicate:
In there a generic constructor with parameter constraint in C#
I have this code that passes the object type dynamically:
public static void Retion<T>() where T : DataContext, new()
{
    using (T entitiesContext = new T())
    {...}
My problem is that I need a constructor with parameters, like this:
   public static void Retion<T>(String conn) where T : DataContext, new()
    {
        using (T entitiesContext = new T(conn))
        {...}
When I try this I get an error: Error 137 'T': cannot provide arguments when creating an instance of a variable type.
 
     
    