SuppressIldasmAttribute 构造函数

定义

初始化 SuppressIldasmAttribute 类的新实例。

public:
 SuppressIldasmAttribute();
public SuppressIldasmAttribute ();
Public Sub New ()

示例

下面的代码示例演示如何将 SuppressIldasmAttribute 特性应用于程序集。

using System;
using System.Runtime.CompilerServices;

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



<Assembly: SuppressIldasmAttribute()> 


Class Program

    Shared Sub Main(ByVal args() As String)
        Console.WriteLine("The SuppressIldasmAttribute is applied to this assembly.")

    End Sub
End Class

注解

SuppressIldasmAttribute 特性应用于程序集或模块,以防止使用 Ildasm.exe (IL 反汇编程序) 对程序集或模块进行反汇编

适用于