>> > You can't iterate over them, as they may be created on demand while > deserializing IL streams. >>
In that case, is there a way to enforce creation of all of them and then maybe get access to all of them? John On Jul 28, 3:43 pm, Jb Evain <[email protected]> wrote: > On Wed, Jul 28, 2010 at 12:35 PM, JohnC <[email protected]> wrote: > > One more thing I found is that ModuleDefinition.Typereferences and > > MemberReferences are no longer present. > > > Is there an alternate way for this? How can I iterate over all the > > type/member references? > > You can't iterate over them, as they may be created on demand while > deserializing IL streams. You can query the module to know if it > references a certain type reference, using module.HasTypeReference, or > TryGetTypeReference, but I haven't find a satisfying way to query for > a member reference. Especially as it could yield wrong results. > > -- > Jb Evain <[email protected]> -- -- mono-cecil
