Skip to content

azborgonovo/EnumerationClass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

EnumerationClass

A simple, stable and reusable Enumeration base class.

Documentation is available at https://github.com/azborgonovo/EnumerationClass/tree/master/doc

Installing

You should install EnumerationClass with NuGet:

Install-Package EnumerationClass

Or via the .NET Core command line interface:

dotnet add package EnumerationClass

When to use enumeration classes?

  • To enable your set of constants with all rich features of an object-oriented language (in comparisson to enum types);
  • Your code needs a static reference to an object (e.g. for application control flow);

If you rather simply need a set of named integral constant values, declare an enum type instead. Of course, be aware of what enum types are meant for and how to use it.

What EnumerationClass package provides?

An abstract class with standard properties and useful methods that facilitate the implementation and use of enumeration classes.

Example

[to be written]

More info

Find more elaboration on the differences, advantages and disadvantages of enum types and enumeration classes on the following links.

About

A simple, stable and reusable Enumeration base class.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages