C#で書かれた軽量なDIコンテナNinjectをちょっとだけ使ってみました。GuiceのC#版のようです。 最近バージョン2がリリースされたみたいですね。 サイト http://ninject.org/ 作者のブログ http://kohari.org/ あんまりドキュメントがないのが残念ですが、コードはきれいでコンパクトにまとまっている印象です。 例にのっていたサンプルプログラムを適当に変更して実行してみました。 [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethod] public void First_step() { var kernel = new StandardKernel(new WarriorModule()); var samurai = kernel.Get<Samurai>(); Assert
Bend software to your will Stop writing monolithic applications that make you feel like you have to move mountains to make the simplest of changes. Ninject helps you use the technique of dependency injection to break your applications into loosely-coupled, highly-cohesive components, and then glue them back together in a flexible manner. Laugh in the face of change Change is inevitable, so be prep
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く