static void ShowFactory() { FooFactory factory = new FooFactory(); IFoo foo = factory.Create(); Bar bar = new Bar( foo ); bar.Example(); }
static void ShowFactory() { FooFactory factory = new FooFactory(); IFoo foo = factory.Create(); Bar bar = new Bar(foo); bar.Example(); }