Start a search about reflection, that is what you'll need.

On Wed, Nov 4, 2009 at 4:41 AM, Cerebrus <[email protected]> wrote:

>
> I think that the Type.GetProperties function provides exactly what you
> need. (Why you need it is another matter, altogether).
>
>
> On Nov 4, 12:50 am, Taner Eser <[email protected]> wrote:
> > Hi all.
> >
> > Consider this;
> >
> > I have a class with bunch of properties and i would like to do exactly
> > same action for each property in my class.
> >
> > Example;
> >
> > foreach(property myProperty in MyClassName.Properties)
> > {
> >      //Do the job!
> >
> > }
> >
> > Any suggestions?
>



-- 
Atenciosamente,
Paulo Roberto S. Pellucci

Reply via email to