コード例 #1
0
ファイル: Program.cs プロジェクト: youp-han/Spring.Net-Test
        static void Main(string[] args)
        {
            IApplicationContext ctx = ContextRegistry.GetContext();
            IHello hello            = (IHello)ctx.GetObject("MyHello");

            Console.WriteLine(hello.sayHello("Mike"));
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: youp-han/Spring.Net-Test
        static void Main(string[] args)
        {
            IApplicationContext ctx = ContextRegistry.GetContext();
            IHello hello            = (IHello)ctx.GetObject("MyHello");
            string name             = "Mike";
            string result           = hello.sayHello(name);

            Console.WriteLine(result);
        }