using System;
public class Program
{
public static void Main()
((IFoo)new Foo()).M();
}
interface IFoo
int I
get;
set;
public void M()
Console.WriteLine("foo");
class Foo : IFoo
public int I { get; set; }