PropertyInfo.GetValue method and ArrayList

  • Thread starter Thread starter Marius Horak
  • Start date Start date
M

Marius Horak

The weekend is coming so you will have plenty of time to find the right
answer. I did search the Net but could not find anything useful.

I have no problems with GetValue(obj, null) for a simple property but
cannot figure out how to use this method if the property is a
collection (eg. ArrayList) with unknown number of items.
I made two or tree attempts but none was working.
I was getting that the array item count is zero and when I tried to get
items withing the array size it was always null(s) instead of item(s).

Thanks

MH
 
Back
Top