Click here to Skip to main content
15,879,535 members
Articles / Programming Languages / C# 4.0

Power of C# Generics - Constraints

Rate me:
Please Sign up or sign in to vote.
3.80/5 (9 votes)
26 May 2010CPOL4 min read 48.2K   308   23  
The idea is to make the best use of Generics when we look for code reusability and performance.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Domain", "ClassLibrary1\Domain.csproj", "{38A236B4-AA41-48E0-9766-F3C60C156B8D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenricsConsoleApp", "GenricsConsoleApp\GenricsConsoleApp.csproj", "{8D470894-BB10-4308-8039-CBBB6D65CB00}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Debug|x86.ActiveCfg = Debug|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Release|Any CPU.Build.0 = Release|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{38A236B4-AA41-48E0-9766-F3C60C156B8D}.Release|x86.ActiveCfg = Release|Any CPU
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Debug|Any CPU.ActiveCfg = Debug|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Debug|Mixed Platforms.Build.0 = Debug|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Debug|x86.ActiveCfg = Debug|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Debug|x86.Build.0 = Debug|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Release|Any CPU.ActiveCfg = Release|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Release|Mixed Platforms.ActiveCfg = Release|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Release|Mixed Platforms.Build.0 = Release|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Release|x86.ActiveCfg = Release|x86
		{8D470894-BB10-4308-8039-CBBB6D65CB00}.Release|x86.Build.0 = Release|x86
	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)


Written By
Technical Lead
Australia Australia
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

Comments and Discussions