public static void Main() { DependencyInjector pdi = new DependencyInjector(); MyService ms = pdi.CreateAndInjectDependencies <MyService>() .rootBean; Console.WriteLine(ms.DoStuff()); // prints "doing the real thing" }
public static void Main() { DependencyInjector pdi = new DependencyInjector(); MyService ms = pdi.CreateAndInjectDependencies <MyService>() .rootBean; Console.WriteLine(ms.DoStuff()); // prints "doing the real thing" }