Home All Groups Group Topic Archive Search About

Auto Gen Properties from fields

Author
31 Oct 2006 11:53 PM
Steve Long
Does anyone know is there is a way to automatically generate properties from
the fields in a class in VB.NET 2003?
So, I type in all of my private fields and now I want to populate the class
with properties to match. Is there a code gen to do this or is there a macro
I can write or something?
Anyone point me in the right direction?

Thanks in advance for any help...
Steve

Author
1 Nov 2006 10:24 AM
Nick Chan
just write your own program to output string. use the string to create
your class

Steve Long wrote:
Show quoteHide quote
> Does anyone know is there is a way to automatically generate properties from
> the fields in a class in VB.NET 2003?
> So, I type in all of my private fields and now I want to populate the class
> with properties to match. Is there a code gen to do this or is there a macro
> I can write or something?
> Anyone point me in the right direction?
>
> Thanks in advance for any help...
> Steve