Closed richardfencel closed 5 months ago
Is there anyway to use the GetEnumerate() method in the ClrType object to do a foreach loop and enumerate over all the objects in the ArrayList?
unlikely, as that requires executing code and is what a debugger is for, as far as I know clrmd doesn't cover debugger features, you probably have to write your own
since ArrayList is a builtin object with known behaviour you could of course hardcode the knowledge and code required for iteration and inspect the fields via clrmd and implement the iteration yourself
Thanks for your explanation. This is what I needed to know.
I attach ClrMd to a target process and create a ClrType from an ArrayList in the target process. The ClrType object is:
One of the methods in this type is GetEnumerator():
url)
Is there anyway to use the GetEnumerate() method in the ClrType object to do a foreach loop and enumerate over all the objects in the ArrayList?