예제 #1
0
    public static void Main()
    {
        DependencyInjector pdi = new DependencyInjector();
        MyService          ms  = pdi.CreateAndInjectDependencies <MyService>()
                                 .rootBean;

        Console.WriteLine(ms.DoStuff());   // prints "doing the real thing"
    }