Given this code:
public interface ITagModel { }
public interface ITemplate {
ITagModel Model { get; set; }
}
public class EmailTag : ITagModel { }
public class EmailTest : ITemplate {
public EmailTag Model { get; set; }
}
I am being told that the Type of EmailTag
(inside EmailClass
) cannot implement the Property Model
because it is not the type ITagModel
.
It is inheriting ITagModel....so why won't this work? What can I do to accomplish what I'm looking for?