当前位置:网站首页>C another new class is ICO? And app Use of config

C another new class is ICO? And app Use of config

2022-06-26 00:53:00 App Hunter

Reprint :

https://blog.csdn.net/dianque7027/article/details/102066782

 

Realization :https://download.csdn.net/download/weixin_42401291/14074553

 

as well as App.config Use , Read xml File parsing

 

Similarly, an interface can be instantiated

static void Main(string[] args)

        {
            // General creation objects
          // User user = new User();

            // Use IoC Container get object
            var container = IoCContainer.GetContainer();
            IUse userIoC = container["UserEntityOne"] as IUse;

            // The test method
            userIoC.SayHello();
            Console.ReadKey();
        }

 

 

原网站

版权声明
本文为[App Hunter]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206252244287070.html