Click here to Skip to main content
15,884,990 members
Articles / Desktop Programming / Windows Forms

Dependency Injection Pattern (Loose Coupling)

Rate me:
Please Sign up or sign in to vote.
2.82/5 (6 votes)
1 May 2008CPOL2 min read 40.5K   413   11  
Description of Dependency Injection Pattern
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Dependency.Injection
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new ExampleDisplay());
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Canada Canada
Education:
Master.CS
Bachelor.CIS
MCTS -- BizTalk Server

Sport:
Favorite teams are:
1) Atlas lions of morocco (soccer)
2) Canadians of Montreal (Hockey)




Comments and Discussions