Click here to Skip to main content
15,880,469 members
Articles / Programming Languages / C#

Enum Generitized

Rate me:
Please Sign up or sign in to vote.
3.28/5 (10 votes)
12 May 2007CPOL7 min read 35K   164   26  
Using Generics to make a different kind of enumeration: easy to comment, and supports many types.
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestEnum", "TestEnum\TestEnum.csproj", "{6D3A6BEB-D323-4342-B46B-71A7B469E5F5}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnumGeneritized", "EnumGeneritized\EnumGeneritized.csproj", "{831CDDC2-C9E5-4DCF-84A6-6A359F65B184}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{6D3A6BEB-D323-4342-B46B-71A7B469E5F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{6D3A6BEB-D323-4342-B46B-71A7B469E5F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{6D3A6BEB-D323-4342-B46B-71A7B469E5F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{6D3A6BEB-D323-4342-B46B-71A7B469E5F5}.Release|Any CPU.Build.0 = Release|Any CPU
		{831CDDC2-C9E5-4DCF-84A6-6A359F65B184}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{831CDDC2-C9E5-4DCF-84A6-6A359F65B184}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{831CDDC2-C9E5-4DCF-84A6-6A359F65B184}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{831CDDC2-C9E5-4DCF-84A6-6A359F65B184}.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)


Written By
Team Leader
United States United States
A biography in this little spot...sure.
I've worked at GTE HawaiianTel. I've worked at Nuclear Plants. I've worked at Abbott Labs. I've consulted to Ameritech Cellular. I've consulted to Zurich North America. I've consulted to International Truck and Engine. Right now, I've consulted to Wachovia Securities to help with various projects. I've been to SHCDirect and now at Cision.

During this time, I've used all kinds of tools of the trade. Keeping it to the more familier tools, I've used VB3 to VB.NET, ASP to ASP/JAVASCRIPT/XML to ASP.NET. Currently, I'm developing with C# and ASP.NET. I built reports in Access, Excel, Crystal Reports, and Business Objects (including the Universes and ETLS). Been a DBA on SQL Server 4.2 to 2000 and a DBA for Oracle. I've built OLTP databases and DataMarts. Heck, I've even done Documentum. I've been lucky to have created software for the single user to thousands of concurrent users.

I consider myself fortunate to have met many different people and worked in many environments. It's through these experiences I've learned the most.

Comments and Discussions