New Lightweight Dependency Injection Framework for .NET – Ninject

Ninject (earlier known as Titan) is a Lightweight Dependency Injection Framework for .NET inspired by Google’s Guice.

From what I can read it from the docs it is really nice for small projects and allows you to live without creating large xml files for configuration and it also uses .NET 2.0+ DynamicMethods to improve object creation speed.

I am going to give it a shot!

September 5, 2007 at 3:11 pm 1 comment

Little-known C# 2.0 operator – ??

Excerpt from the msdn:

The ?? operator returns the left-hand operand if it is not null, or else it returns the right operand.

Example:

string s = null; 
int? i = null; 
Console.WriteLine(s ?? "(null)"); 
Console.WriteLine(i ?? -1);

Will produce:

(null) 
-1

August 21, 2007 at 2:39 pm 2 comments

Links For Continuous Learners

Today I’ve spotted nice Steve Pietrek’s blog where he puts links to miscellaneous articles about .Net and related technologies

http://spietrek.blogspot.com/

August 20, 2007 at 9:44 am Leave a comment

ASP.NET Ajax, Update Panels and Response.Redirect

If your Response.Redirect doesn’t work under UpdatePanel’s callback, then you definitely missing ScriptModule in the web.config:

<httpModules>

  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</httpModules>

And now it works like a charm 🙂

August 17, 2007 at 1:33 pm 35 comments

Newer Posts


Categories

  • .net

  • Feeds