a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
31 lines
299 B
C#
31 lines
299 B
C#
public class B<T>
|
|
{
|
|
public int Add (T obj)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
public void AddRange (object o)
|
|
{
|
|
T obj = (T) o;
|
|
Add (obj);
|
|
}
|
|
}
|
|
|
|
public interface IA
|
|
{
|
|
}
|
|
|
|
public class A : IA
|
|
{
|
|
}
|
|
|
|
public class Test
|
|
{
|
|
public static void Main ()
|
|
{
|
|
B<IA> aux = new B<IA> ();
|
|
aux.AddRange (new A ());
|
|
}
|
|
}
|