I have to check the namespaces in a C# dll in a vb6.0 application. I am using "TypeLibInfo" to obtain the information of the dll. I am able to check the class name and method name but not the namespace. How to obtain namespace of the DLL?
Asked
Active
Viewed 395 times
2
-
1That's going to be difficult, COM Automation doesn't have the concept of namespaces. Just a library name, nothing else. – Hans Passant Apr 04 '12 at 13:19
-
1+1 @HansPassant. Ishan, you could write a .Net method that uses reflection to find the namespaces. Make the .Net method COM-visible and you can call it from VB6. You might like to consider how important this is to you - can you live without it? – MarkJ Apr 04 '12 at 14:37
-
@MarkJ. Thanks Mark, I'll try it this way. Since its quite important so I have to do it. – Ishan Apr 05 '12 at 04:19
1 Answers
0
If you have access to Visual Studio, you can use the Object Browser to view the Namespaces, classes etc within an assembly.
If you don't, you might need to use a tool like Reflector, CodeReflect etc to do this.