Ask your own question, for FREE!
Computer Science 23 Online
OpenStudy (anonymous):

I am developing a simple .NET decompiler using Mono.Cecil Library. I want to group the classes on basis of namespaces. However, ModuleDefiniton does not provide a way to enumerate through all namespaces. Any idea how to do it? Also, if somebody has a Mono.Cecil reference guide, please share it.

OpenStudy (anonymous):

Try iterating through the TypeDefinitionCollection returned by ModuleDefinition.GetTypes(). Each TypeDefinition has a property named Namespace which you can use. Grouping them will require a little extra work on your part, but not much. Good luck.

OpenStudy (anonymous):

BTW the repository for Mono.Cecil can be found here: https://github.com/jbevain/cecil While not as simple as explicit documentation, the source code is relatively clean and organized.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!