dexterm

dexterm

  • NA
  • 3
  • 0

how to modify an ArrayList

Apr 7 2005 9:46 PM
I have a class that's defined like this: public class MyClass { public string member1; public string member2; } and an ArrayList: ArrayList al = new ArrayList(); This ArrayList has been populated with a number of objects of type MyClass. Based on user input, I will need to search through the ArrayList and modify a specific object. I have already figured out how to find the object in the ArrayList. But, how do I modify the object inside the ArrayList? Any help would be appreciated. Dexterm

Answers (2)