I want something like this:
public static TTo JumpTo<TFrom, TTo>(this TFrom from_page)
where TTo : new() TFrom : new()
{
...
}
And I want to enforce that TFrom and TTo are both derived from a base type.
And I want to make this method as an extension method of TFrom type.
Is it possible ? And what's the correct syntax?