Viewing Attributes with the MSIL Disassembler

The MSIL Disassembler is an application that ships with the Framework SDK. The application name is ildasm.exe. By default this application is installed when you install the .NET framework into the \Program Files\Microsoft.NET\FrameworkSDK\Bin directory.

The ildasm.exe utility allows you to view an assembly's manifest and IL information. Part of this information is the attribute information applied to entities. Refer to Figure 12.2 for an example showing the ConditionalAttribute emitted to IL.

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.