SuppressIldasmAttribute 构造函数
定义
初始化 SuppressIldasmAttribute 类的新实例。Initializes a new instance of the SuppressIldasmAttribute class.
public:
SuppressIldasmAttribute();
public SuppressIldasmAttribute ();
Public Sub New ()
示例
下面的代码示例演示如何将特性应用于 SuppressIldasmAttribute 程序集。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.");
}
}
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 程序集或模块,以防止使用 (IL 拆装器)Ildasm.exe 反汇编程序集或模块。Apply the SuppressIldasmAttribute attribute to an assembly or module to prevent the assembly or module from being disassembled using the Ildasm.exe (IL Disassembler).