cdmckay

Stories submitted by cdmckay

Dnum(couchware.ca)

submitted by cdmckaycdmckay(30) 2 years, 8 months ago

Dnum is a static class for accessing enumeration values much like the built-in .NET Enum class. Unlike Enum, Dnum is type-safe, reducing the number of enum-related runtime errors and eliminating the need for tedious, error-prone and inelegant down-casts. read more...

add a comment |category: |Views: 14

tags: another

Inconsistencies in the .NET Enum class(couchware.ca)

submitted by cdmckaycdmckay(30) 2 years, 8 months ago

During a recent project of mine, I had to do a lot of enum manipulation using the .NET Enum class and I have to say I wasn’t impressed. Besides the shortcoming of it not being a generic class (and thus not being especially type-safe), Enum also has some strange inconsistencies in terms of how it handles matched integral types. read more...

add a comment |category: |Views: 12

tags: another

Joshua Bloch’s Builder Pattern in C#(couchware.ca)

submitted by cdmckaycdmckay(30) 2 years, 10 months ago

An article discussing how to use Joshua Bloch's Java Builder pattern in C#. The article discusses more than one approach to modifying the pattern to make Bloch's Builder work with C# semantics. read more...

add a comment |category: |Views: 14

tags: another