PropertyInfo.GetValue method and ArrayList

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marius Horak

    #1

    PropertyInfo.GetValue method and ArrayList


    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
  • Marius Horak

    #2
    Re: PropertyInfo.Ge tValue method and ArrayList

    Forget, I had too much tea today.

    MH

    Comment

    Working...