public void Bar()
    {
        var obj = new MyInterface();

        obj.Foo();
    }