Skip to content
David Cumps
ConvertToProperties Macro

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

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.