От: | samius | http://sams-tricks.blogspot.com | |
Дата: | 06.06.10 18:23 | ||
Оценка: |
interface IFoo
{
void Foo(int[] v);
}
interface IFoo2
: IFoo // (1)
{
//void Foo(int[] v); // (2)
}
class FooImpl : IFoo2
{
public void Foo(int[] v)
{
}
}
class Program
{
static void Bar(IFoo2 foo, dynamic v)
{
foo.Foo(v); // (3)
// new FooImpl().Foo(v); // (4)
}
static void Main()
{
Bar(new FooImpl(), new[] {1, 2, 3});
}
}
'ConsoleApp.IFoo' does not contain a definition for 'Foo'