public class test
{
public void doTest()
{
Interface1<object> win = new Class1<object>();
Interface2 fail = new Class1<object>();
}
}
public interface Interface2 : Interface1<object>
{
}
public interface Interface1<t> where T : class
{
}
public class Class1<t> : Interface1<t>
where T : class
{
}
All I am really after is for Interface2 to act as an alias for Interface1
No comments:
Post a Comment