Enumeration in C#

Quote from page 21 of “Pro C# 2010 and the .NET 4 Platform” book of Andrew Troelsen (ok, quality of this book is a potential subject of another post): “Enumerations are a handy programming construct that allow you to group name/value pairs”.

Can anyone explain why enumerations don’t remain being enumerations of values, but become group of name/value pairs? What do they enumerate now? Keys or values?

Leave a Reply

Your email address will not be published. Required fields are marked *

Please, enter correct number below to prevent spam (required)