SpecializedEnum: a base class to allow enum-like behavior with arbitrary objects

  •        53

This class uses readonly variables, reflection, generics, and an internal ordered list to provide behavior similar to that of an enum but with arbitrary objects or value types rather than only integer numeric types. Public static readonly variables can be added in the derived ...

http://specializedenum.codeplex.com/

Tags
Implementation
License
Platform

   




Related Projects

Enumeration of objects Class Library C#


At core level in Java I like extension of traditional enum type permiting use as the elements instances of a class. The project implements the same idea by C# with some more advanced features like a set type with boolean operators extending idea of FlagsAttribute

go-enum - An enum generator for go


The goal of go-enum is to create an easy to use enum generator that will take a decorated type declaration like type EnumName int and create the associated constant values and funcs that will make life a little easier for adding new values. It's not perfect, but I think it's useful.I took the output of the Stringer command as the String() method, and added a way to parse a string value.

EnumerableBehavior - CakePHP behavior to create enumeration (not database enum type)


CakePHP behavior to create enumeration (not database enum type)

generic-dao - Generic Dao for Java Generics and Enum + Spring + Hibernate


Generic Dao for Java Generics and Enum + Spring + Hibernate

rack-enum - Functional Enumeration in Racket


Functional Enumeration in Racket



enum-Ladder-Lottery - E?cient Enumeration of All Ladder Lotteries


E?cient Enumeration of All Ladder Lotteries

enum-paradise - Scala enumeration implementation using type macros


Scala enumeration implementation using type macros

php-enums


PHP library providing enumeration functionality similar to Java. It differs from existing libraries by offering one-shot enum constructors through static initialization, enum iteration, equality support and fine-grained value, ordinal and binary lookups.

WebFEET - Web Filter External Enumeration Tool (WebFEET)


The techniques used can help enumerate: * Products or services used, sometimes with versions * Detailed web filtering policy enumeration (and associated flaws in the policy and/or product/service capability) This tool works in a drive-by way, using JavaScript to enumerate products and policy. It populates the DOM with the results, and POSTs the DOM back to the server for further analysis. Further documented notes are available inline with the results page. ==== Current stable Beta version:

instant-generics - Code repository for the instant-generics library


Code repository for the instant-generics library

gen - Type-driven code generation for Go


gen is a code-generation tool for Go. It’s intended to offer generics-like functionality on your types. Out of the box, it offers offers LINQ/underscore-inspired methods.It also offers third-party, runtime extensibility via typewriters.

jennifer - Jennifer is a code generator for Go


Jennifer is a code generator for Go.If you get stuck, have a question, would like a code review, or just want a chat: I'm happy to help! Feel free to open an issue, email me or mention @dave in your PR.

Code Snippet With Syntaxhighlighter Support for Windows Live Writer


A code snippet plugin for Windows Live Writer with support for Syntaxhighlighter as well as good support for snippet indentation.

mobly-snippet-lib - Mobly Snippet Lib is a library for triggering device-side code from host-side Mobly tests


Mobly Snippet Lib is a library for triggering device-side code from host-side Mobly tests. This tutorial teaches you how to use the snippet lib to trigger custom device-side actions.Note: Mobly and the snippet lib are not official Google products.

snippet - snippet code, useful code, best practice code, good structure and examples


snippet code, useful code, best practice code, good structure and examples

Export code as Code Snippet - Addin for Visual Studio 2008/2010 RC


This add-in for Visual Studio 2008 allows to export selected code as a reusable Code Snippet (.snippet file format) for Visual Studio 2008. Complete *Visual Basic* source code and a documentation file are provided. Check out the new version for *Visual Studio 2010 RC*

Visual Studio 2008 Code Snippet Library C#


While developing other projects, I force myself to write code snippets for common scenarios such as creating public classes, static classes and even singletons. This library is simply my snippets file. Regulary updated! (at least once a week).

codegen.cpp.enum - Converts an enumeration declared in xml format to c++ code


Converts an enumeration declared in xml format to c++ code

php-enums - Type-safe enumeration design pattern code generator for php


Type-safe enumeration design pattern code generator for php