File Details
| Downloads: |
219 |
File Size: |
Unknown |
| Posted By: |
Admin |
Views: |
411 |
| Date Added: |
Thu, Mar 08 2007 |
|
While writing our ASP compiler for .NET we needed a tool that showed detailed reflection information. Current tools do not go into the detail required... so we wrote one that does. MirrorMirror is a command line tool that produces an XML file describing
the type requested. The syntax is:
mm [/a assembly] [/t typename]
Where:
'assembly' is the path of a valid assembly.
'typename' is the name of a class in the assembly
Examples:
If you just give an assembly but give no type-name, the types implemented in the assembly will be shown:
>mm /a bin\IISInterface.dll
The assembly: bin\IISInterface.dll contains:
Exported Type: GothamIIS.HandlerFactory
Type: GothamIIS.CompileErrorHandler
Type: GothamIIS.HandlerFactory
Type: GothamIIS.CompileErrorHandlerNotLocal
To reflect on one of those types:
c:\Temp\m>mm /a bin\IISInterface.dll /t handlerfactory
MirrorMirror .NET Reflection Investigator (c) Silverfrost Limited 2007
Output: GothamIIS.HandlerFactory.xml
If the type can be resolved without an assembly reference then you can leave it out:
c:\Temp\m>mm /t system.io.streamwriter
MirrorMirror .NET Reflection Investigator (c) Silverfrost Limited 2007
Output: System.IO.StreamWriter.xml