-
I'm trying to get a list of types defined in an assembly. Cecil can read the assembly without difficulty but there doesn't seem to be a method to get a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
From my short experience, I understand that Cecil has no such feature. There are Importers (System.Type to TypeReference) but not the other way around. Could this be related to what you want to achieve? https://stackoverflow.com/questions/40018991/how-to-implement-isassignablefrom-with-mono-cecil I think they suggest using these elements to build an equality relation between System.Type and TypeReferences:
Best regards, |
Beta Was this translation helpful? Give feedback.
-
System.Type is implemented at the runtime level. To get a proper type the runtime needs to load a proper assembly. If you can't load an assembly you can't get a |
Beta Was this translation helpful? Give feedback.
System.Type is implemented at the runtime level. To get a proper type the runtime needs to load a proper assembly. If you can't load an assembly you can't get a
System.Type
for types in that assembly I'm afraid.