sensoukami
Technical User
Hello!
I apologize if this is the wrong place in the forum. I
wasnt sure where else to go, and I am in a screaming rush
(work pressure).
------------------------
I need to loop through the properties of a class, look at
those properties, and then "do stuff" depending on whether
or not the property is of type string.
Problem1:
I dont know how to loop through a class's properties. I
have done some digging, and "reflection"
and "PropertyInfo" seem to have what I need, and I have
been playing around, but I am kind of lost.
Problem2:
Once I can do that, how can I dynamically alter those
properties without just using the properties name?
Any general advice or tips would be huge.
Thanks,
I apologize if this is the wrong place in the forum. I
wasnt sure where else to go, and I am in a screaming rush
(work pressure).
------------------------
I need to loop through the properties of a class, look at
those properties, and then "do stuff" depending on whether
or not the property is of type string.
Problem1:
I dont know how to loop through a class's properties. I
have done some digging, and "reflection"
and "PropertyInfo" seem to have what I need, and I have
been playing around, but I am kind of lost.
Problem2:
Once I can do that, how can I dynamically alter those
properties without just using the properties name?
Any general advice or tips would be huge.
Thanks,