
ConvertToProperties Macro
Originally published on my old blog at cumps.be on July 2, 2004.
For everyone who received .NET Magazine #5, there’s an article in there on page 53 about cleaning up your code.
Jan Tielens mentions a ConvertToProperties macro, which is really sweet!
But there has been a printing error or something: the link went missing on page 55, in the bottom box, which just shows http://xxx/....
So, here it is: Create Property Macro for C#.
The version on the site doesn’t correspond to the screenshots, it doesn’t use mVariable (any more?), but replaces it with _variable (which I prefer).
Be sure to get this macro! It saves you a lot of time ;)
You May Also Like

Passing Bitwise OR Enum Values
How to pass several options in one enum parameter, like RegexOptions, using powers of two, bitwise OR and bitwise AND.

UPX: The Ultimate Packer for eXecutables
UPX compresses executables you drop onto it; my VB6 program went from 208 KB to 77 KB.

VBDOX: Documentation Generator for VB6
VBDOX does for Visual Basic 6 what NDoc does for .NET: MSDN-style documentation from XML comments, as HTML or a help file.



