Sign In
Neal's Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
No tags have been created or used yet.
Archive
Archives
August 2006
(1)
January 2006
(2)
December 2005
(4)
November 2005
(3)
December, 2005
MSDN Blogs
>
Neal's Blog
>
December, 2005
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Neal's Blog
Enumerated Types: Enumerating the Values
Posted
over 7 years ago
by
nealho
1
Comments
One of the things you lose when doing class-based enums is the support of the System.Enum class and its static methods for all enum types. Take a look at the documentation on MSDN —the only methods that really remain applicable are GetValues,...
Neal's Blog
Enumerated Types: Dynamic Differentiation
Posted
over 7 years ago
by
nealho
0
Comments
So class-based enumerated types allow you to define dynamic behaviors, where the consumer of the enum doesn't have to know specifically which instance of the enum he has; he need only invoke the appropriate method, and the type of the instance will determine...
Neal's Blog
Enumerated Types: Using Classes
Posted
over 7 years ago
by
nealho
1
Comments
I said I’d blog about how exactly I use enums, but there are a lot of interesting issues here, so I think I’ll develop my approach over the course of a few posts. Here’s my simplest form of class-based enum: public class EnumType { public static...
Neal's Blog
Enumerated Types
Posted
over 7 years ago
by
nealho
4
Comments
I had an interesting discussion earlier regarding enums and how they work in .NET, and since I haven't I blogged in a while, I thought I'd post some thoughts. Conceptually, an enumerated type is a type that has a set of values that can be (surprise...
Page 1 of 1 (4 items)