Hi there, thanks for helping!
When you say "generic instance" do you mean something like List<int>
in distinction to the empty generic type like List<>?

Maybe I got GetMemberReferences() wrong. I am trying to write a tool
for searching through the members of an assembly.

Just like in ReSharper when you press CTRL+T or in the search panel of
Reflector. (Funny thing is I guess in one or another way both of these
products use Mono.Cecil for this functionality.)

To get the whole searchable content of an assembly I enumerate
GetMemberReferences take all types, methods, properties, fields and
events out of it and put it in a database which stores the member
name, its assemblypath and its MetadataToken.
Would you advise to use something different than GetMemberReferences()
oder should I just swallow the NotSupported exception when trying to
lookup a generic instance by its metadata token?

Thanks and best regards Florian

-- 
--
mono-cecil

Reply via email to