i just want to add items to ArrayList property in Runtime using Reflection,
is this possible?
it is my first time to ask on forums so I hope my question is clear and seems serious..
i just want to add items to ArrayList property in Runtime using Reflection, is
Share
ArrayListimplementsIList, so all you have to do is to get ahold of an appropriatePropertyInfoobject (foo.GetType().GetProperty("...")), get it’s value (propertyInfo.GetValue(foo, null)), cast it toIListandAdd()whatever you want.