:: Home

  login:         
  passwords:  

Winforms Interview Questions

Windows Forms Deployment
Windows Forms Controls
Windows Forms Data Binding
Windows Forms Datagrid
Windows Forms Docking
Windows Forms Keyboard Handling
Windows Forms Layout
Windows Forms Licensing
Windows Forms Menus
Windows Forms Mouse Handling
Windows Forms from MFC
Windows Forms from VB6
Windows Forms Patterns
Windows Forms Printing
Windows Forms Resources
Windows Form Scrolling
Windows Forms Tips
Windows Forms Common Dialogs
Windows Forms Listbox
Windows Forms ComboBox
Windows Forms Rich TextBox
Windows Forms ListView
Windows Forms TreeView
Windows Forms Button
Windows Forms TabControl
Windows Forms TextBox
Windows Forms MDI
Windows Forms Cursors
Windows Forms WebBrowser
Windows Forms PictureBox
Windows Forms Form
Windows Forms MDI
Windows Forms In IE
GDI+Bitmaps&Images
GDI+Font
GDI+Color
GDI+Brushes
GDI Drawing Tips
GDI+ from GDI
GDI Paths Regions
GDI+Pens
Interioerability WIn32
Tools Metadata Viewers
Design Time Serialization
Design Time Custom Designers
Design Time Tips
Design Time Type Editors
Vs.Net Tips
Vs.Net Debugging
Vs.Net Macros
Framework Tips General
Framework Tips Events
Framework Tips General IO
Framework Tips Strings
Framework Tips Threading
Tool Resource Editor
Design Time UI
Framework Tips CGI
Framework Tips XML

WPF Interview Qs

SilverLight Interview Qs

SAP Interview Questions

Oracle Interview Questions

PHP Interview Questions

Ajax Interview Questions

IIS 7.0

OOP Interview Questions

Ruby Interview Questions

Sql Server Interview Questions

SharePoint 2007 Questions

Microsoft Crm Questions

Tools Metadata Viewers

The General Winforms Interview Questions consists the most frequently asked questions in Winforms. This list of 100+ questions guage your familiarity with the Winforms platform. The q&a have been collected over a period of time from various blogs, forums and other similar Winforms sites

42. Tools Metadata Viewers

    42.1 Are there any tools that allow me to view the rich meta data that .NET assemblies have? Is there a OLEVIEW equivalent for .NET?
    42.2 How do I disassemble a .net assembly (dll/exe) into the IL format?
    42.3 How do I create a dll/exe off a previously diassembled .il file?
    42.4 How can I launch ILDASM from the VS.NET 2003 IDE?

42.1 Are there any tools that allow me to view the rich meta data that .NET assemblies have? Is there a OLEVIEW equivalent for .NET?

Currently, the best one that I know of is the Reflector for .NET by Lutz Roeder. You can find it here along with other useful tools.
Reflector for .NET
You can also use the Windows Class Viewer (wincv.exe) and ILDASM (ildasm), both of which come with the .NET framework.


42.2 How do I disassemble a .net assembly (dll/exe) into the IL format?

You can covert a dll into it's IL using the ildasm.exe utility. This is usually installed in: C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin
If you want to run this utility via command line it would help if you add the above path to your Environment Path variable.
Here is a sample command line that will disassemble a dll:
ildasm MyFile.exe /output:MyFile.il
You can reassemble the above il after making some minor changes via the ilasm utility. This is usually done to make some minor changes to an assembly like modifying the version no. of another assembly to which it links to.

42.3 How do I create a dll/exe off a previously diassembled .il file?

You can create a dll/exe from the il file using the ilasm.exe utility. This utility is usually installed in the C:\WINNT\Microsoft.NET\Framework\v1.0.3705 (or the appropriate version no.) directory.
If you want to run this utility via command line it would help if you add the above path to your Environment Path variable.


Here is an example command line: // The .res resource file is optional ilasm TextProcessing.il /dll /output:TextProcessing.dll /resource:TextProcessing.res


42.4 How can I launch ILDASM from the VS.NET 2003 IDE?

Launch VS.NET andchoose Tools->ExternalTools->Add and add settings as show below: Title: ILDASM (or anything else of your choice)
Command: C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\ildasm.exe
Arguments: $(TargetPath)
Initial Directory: $(TargetDir)


Use Output Window: unchecked
Prompt for arguments: unchecked
Close on exit: checked.

Copyright 2007, Megasolutions Ltd