Archive for October, 2005

Structs vs Classes: Revisted

Wednesday, October 5th, 2005

Just thought I’d mention Microsoft’s advice on the Structs vs. Classes issue

Consider defining a structure instead of a class if instances of the type are small and commonly short-lived or are commonly embedded in other objects.
Do not define a structure unless the type has all of the following characteristics:

It logically represents a single value, similar […]