技术开发 频道

Castle:Windsor Container入门级教程


【IT168技术文档】

  在这个快速入门部分,将向你介绍一些Windsor Container的基础操作。你会惊奇:什么是Castle MicroKernel?可以说,当你在应用Windsor Container的时候你也在应用MicroKernel。 


  我们将用一个Winforms项目来试验Windsor container,跟随下面的步骤来建立它吧。


  打开Visual Studio 从New\Project... 中选择 Windows Application

  现在建立一个叫App的类。我们将会用它作为程序的入口。
namespace GettingStartedPart1 { using System; using System.Windows.Forms; public class App { public static void Main() { Application.Run(new Form1()); } } }
0
相关文章