I have a class of type Installer where TModel has a constraint. I want to create an extension method with the type signature :\
public static void DoRepetitiveStuff<TOtherObject, TModel>(this Installer<TModel> installer)
where TModel : class, IConstraint, new()
where TOtherObject : class, IOtherConstraint, new()
{
installer.DoSomeStuff<TOtherObject>(c => { });
}
the goal being that eventually I can call the function using a simple installer.DoRepetitiveStuff<TOtherObject>();
For some reason when I call that function on my other file. It complains there isn't any extension method that accept a Installer in existance... I need to use it with:
installer.DoRepetitiveStuff<TOtherObject, TModel>();
Anyone knows why ?