SuppressIldasmAttribute Constructor ()

 

Initializes a new instance of the SuppressIldasmAttribute class.

Namespace:   System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public SuppressIldasmAttribute()

Apply the SuppressIldasmAttribute attribute to an assembly or module to prevent the assembly or module from being disassembled using the Ildasm.exe (IL Disassembler).

The following code example demonstrates how to apply the SuppressIldasmAttribute attribute to an assembly.

using System;
using System.Runtime.CompilerServices;

[assembly: SuppressIldasmAttribute()]
class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("The SuppressIldasmAttribute is applied to this assembly.");

    }

}

.NET Framework
Available since 2.0
Return to top
Show: