consulo-csharp
consulo-csharp copied to clipboard
Override: twice or more hide methods impl with generic signature & object type
using System;
using System.Collections.Generic;
public class Program {
public static void Main(String[] args) {
List<Object> list = null;
object str = list[0];
}
}

Simple example:
public interface A
{
object test();
}
public class B<T> : A
{
private object A.test()
{
return null;
}
public T test()
{
return default(T);
}
}
public class Program
{
public static void Main()
{
B<object> b = null;
b.test(); // test is not resolved
}
}