spring.net 框架分析(二)IApplicationContext

using System;
using Spring.Core.IO;
using Spring.Context.Support;
using Spring.Context;
namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        { 
           IApplicationContext    applicationContext= ContextRegistry.GetContext(); 
           TestClass tc= (TestClass ) applicationContext.GetObject("TCOject"); 
            Console.ReadLine();
        }
    }
}

http://blog.csdn.net/yangjian15/article/details/4532297

你可能感兴趣的:(spring.net 框架分析(二)IApplicationContext)