Using Mono.Cecil , I can iterate over fields on System.Collections.Generic.List ( _items , _size , _version , etc.), however, if I try to use them, I always get an exception
Member 'T [] System.Collections.Generic.List`1 :: _ items' is declared in another module and must be imported
I have two questions regarding this:
- Is it impossible to access the generic generic fields?
- If possible, what would the import expression look like for him?
I have successfully accessed private members on objects (until they are generated by the compiler), so I assume that (1) is fine. I have also successfully imported things, although I admit that my understanding of how imports work is shaky (aka βif it gives an error, just try importing itβ).
source share