Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Dynamic Binding Using the Factory Pattern

, 1 Nov 2009
Using the Factory design pattern to hide dynamic binding and use configuration strings to determine which classes should be instantiated.

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C# Express 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Activation", "Activation\Activation.csproj", "{0A425ACE-5C4E-41EE-9943-8D502BD9B8AC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared", "Dynamic\Shared.csproj", "{9127E1EB-CD80-41CE-AFF5-358FA0D9CB97}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client\Client.csproj", "{242D0583-D19E-457E-964C-3B5D194B0C99}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoaHost", "SoaHost\SoaHost.csproj", "{42D8E1D2-8E22-498A-B528-27192BA28296}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WcfHttpHost", "WcfHttpHost\WcfHttpHost.csproj", "{D215D762-78AC-42F3-B166-578CA24ACD95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Activation.WcfHttp", "WcfHttp\Activation.WcfHttp.csproj", "{A0F8D780-C219-4B1B-A247-343581774FC6}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{0A425ACE-5C4E-41EE-9943-8D502BD9B8AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{0A425ACE-5C4E-41EE-9943-8D502BD9B8AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{0A425ACE-5C4E-41EE-9943-8D502BD9B8AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{0A425ACE-5C4E-41EE-9943-8D502BD9B8AC}.Release|Any CPU.Build.0 = Release|Any CPU
		{9127E1EB-CD80-41CE-AFF5-358FA0D9CB97}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{9127E1EB-CD80-41CE-AFF5-358FA0D9CB97}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{9127E1EB-CD80-41CE-AFF5-358FA0D9CB97}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{9127E1EB-CD80-41CE-AFF5-358FA0D9CB97}.Release|Any CPU.Build.0 = Release|Any CPU
		{242D0583-D19E-457E-964C-3B5D194B0C99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{242D0583-D19E-457E-964C-3B5D194B0C99}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{242D0583-D19E-457E-964C-3B5D194B0C99}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{242D0583-D19E-457E-964C-3B5D194B0C99}.Release|Any CPU.Build.0 = Release|Any CPU
		{42D8E1D2-8E22-498A-B528-27192BA28296}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{42D8E1D2-8E22-498A-B528-27192BA28296}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{42D8E1D2-8E22-498A-B528-27192BA28296}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{42D8E1D2-8E22-498A-B528-27192BA28296}.Release|Any CPU.Build.0 = Release|Any CPU
		{D215D762-78AC-42F3-B166-578CA24ACD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{D215D762-78AC-42F3-B166-578CA24ACD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{D215D762-78AC-42F3-B166-578CA24ACD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{D215D762-78AC-42F3-B166-578CA24ACD95}.Release|Any CPU.Build.0 = Release|Any CPU
		{A0F8D780-C219-4B1B-A247-343581774FC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A0F8D780-C219-4B1B-A247-343581774FC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A0F8D780-C219-4B1B-A247-343581774FC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A0F8D780-C219-4B1B-A247-343581774FC6}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

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)

About the Author

Richard (Rick) Wycoff
Software Developer (Senior)
United States United States
Rick's software passion is developing "invisible” software components, the kind that no one ever thinks about because they just do what they are supposed to do. He believes in standards, design patterns, and designing components for extensibility and reuse.

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 1 Nov 2009
Article Copyright 2009 by Richard (Rick) Wycoff
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid