Generics 泛型类型到接口的隐式转换

Generics 泛型类型到接口的隐式转换,generics,c#-4.0,interface,type-conversion,implicit,Generics,C# 4.0,Interface,Type Conversion,Implicit,我知道接口不支持隐式运算符,幸运的是我没有尝试这样做。但它很接近,而且给了我错误,我不确定解决这个问题的明智方法是什么 我有一个主要的演示者: public sealed class PersonPresenter : RecordPresenter<IPersonService,PersonOverview,PersonMailMergeSource> 但回到PersonPresenter,它抛出了以下错误: The type 'IPersonService' must

我知道接口不支持隐式运算符,幸运的是我没有尝试这样做。但它很接近,而且给了我错误,我不确定解决这个问题的明智方法是什么

我有一个主要的演示者:

    public sealed class PersonPresenter : RecordPresenter<IPersonService,PersonOverview,PersonMailMergeSource>
但回到PersonPresenter,它抛出了以下错误:

The type 'IPersonService' must be convertible to 'IRecordService<PersonOverview>' in order to use it as a parameter 'T' in the generic class 'RecordPresenter<T,K,U>'.

我这样做是不可能的吗?有没有合适的方法?我注定了吗?谢谢大家!

你最初的声明没有多大意义,因为你有约束,但你没有声明任何类型参数……啊,我明白我在问题中搞砸了什么。较好的泰!
    public interface IPersonService: IRecordService<PersonInfo>
    public static implicit operator PersonInfo(PersonOverview rhs)
    {
        return rhs.Person;
    }
The type 'IPersonService' must be convertible to 'IRecordService<PersonOverview>' in order to use it as a parameter 'T' in the generic class 'RecordPresenter<T,K,U>'.