C# arraylist access to objects
I have an arraylist where I store my objects. Now in my example, I want to take the arraylist index and use it to assign the object inside to another object of the same. How would I do that?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit ChoudharyPosted Feb 26, 2010, 12:41 AM
you can do it using ObjectCast...
((product)a[1]).superName="XYZ";
Hope it helps you.....