System.Reflection.Emit Spazio dei nomi
Contiene le classi che consentono a un compilatore o a uno strumento di creare metadati e codice MSIL e facoltativamente di generare un file PE su disco. Contains classes that allow a compiler or tool to emit metadata and Microsoft intermediate language (MSIL) and optionally generate a PE file on disk. I client primari di queste classi sono compilatori e motori di script. The primary clients of these classes are script engines and compilers.
Classi
AssemblyBuilder |
Definisce e rappresenta un assembly dinamico.Defines and represents a dynamic assembly. |
ConstructorBuilder |
Definisce e rappresenta un costruttore di una classe dinamica.Defines and represents a constructor of a dynamic class. |
CustomAttributeBuilder |
Consente di compilare attributi personalizzati.Helps build custom attributes. |
DynamicILInfo |
Fornisce supporto per utilizzare metodi alternativi per generare codice MSIL (Microsoft Intermediate Language) e metadati per un metodo dinamico, inclusi metodi per la creazione di token e per l'inserimento di codice, gestione delle eccezioni e blob di firma per le variabili locali.Provides support for alternative ways to generate the Microsoft intermediate language (MSIL) and metadata for a dynamic method, including methods for creating tokens and for inserting the code, exception handling, and local variable signature blobs. |
DynamicMethod |
Definisce e rappresenta un metodo dinamico che può essere compilato, eseguito e annullato.Defines and represents a dynamic method that can be compiled, executed, and discarded. I metodi annullati possono essere sottoposti a Garbage Collection.Discarded methods are available for garbage collection. |
EnumBuilder |
Descrive e rappresenta un tipo di enumerazione.Describes and represents an enumeration type. |
EventBuilder |
Definisce gli eventi per una classe.Defines events for a class. |
FieldBuilder |
Definisce e rappresenta un campo.Defines and represents a field. La classe non può essere ereditata.This class cannot be inherited. |
GenericTypeParameterBuilder |
Definisce e crea i parametri di tipo generico per tipi e metodi generici definiti in modo dinamico.Defines and creates generic type parameters for dynamically defined generic types and methods. La classe non può essere ereditata.This class cannot be inherited. |
ILGenerator |
Genera istruzioni MSIL (Microsoft Intermediate Language).Generates Microsoft intermediate language (MSIL) instructions. |
LocalBuilder |
Rappresenta una variabile locale all'interno di un metodo o di un costruttore.Represents a local variable within a method or constructor. |
MethodBuilder |
Definisce e rappresenta un metodo (o costruttore) di una classe dinamica.Defines and represents a method (or constructor) on a dynamic class. |
MethodRental |
Fornisce un modo rapido di scambiare l'implementazione del corpo del metodo, dato un metodo di una classe.Provides a fast way to swap method body implementation given a method of a class. |
ModuleBuilder |
Definisce e rappresenta un modulo in un assembly dinamico.Defines and represents a module in a dynamic assembly. |
OpCodes |
Fornisce le rappresentazioni dei campi delle istruzioni MSIL (Microsoft Intermediate Language) per la creazione da parte dei membri della classe ILGenerator, ad esempio il metodo Emit(OpCode).Provides field representations of the Microsoft Intermediate Language (MSIL) instructions for emission by the ILGenerator class members (such as Emit(OpCode)). |
ParameterBuilder |
Crea o associa informazioni sui parametri.Creates or associates parameter information. |
PropertyBuilder |
Definisce le proprietà per un tipo.Defines the properties for a type. |
SignatureHelper |
Fornisce i metodi per la compilazione delle firme.Provides methods for building signatures. |
TypeBuilder |
Definisce e crea nuove istanze delle classi in fase di esecuzione.Defines and creates new instances of classes during run time. |
UnmanagedMarshal |
Rappresenta la classe che descrive come effettuare il marshalling di un campo da codice gestito a codice non gestito.Represents the class that describes how to marshal a field from managed to unmanaged code. La classe non può essere ereditata.This class cannot be inherited. |
Struct
EventToken |
Rappresenta l'oggetto |
ExceptionHandler |
Rappresenta un gestore di eccezioni in una matrice di byte di IL da passare a un metodo, ad esempio SetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>).Represents an exception handler in a byte array of IL to be passed to a method such as SetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>). |
FieldToken |
La struttura |
Label |
Rappresenta un'etichetta nel flusso di istruzioni.Represents a label in the instruction stream. |
MethodToken |
La struttura |
OpCode |
Descrive un'istruzione del linguaggio intermedio (IL).Describes an intermediate language (IL) instruction. |
ParameterToken |
La struttura |
PropertyToken |
La struttura |
SignatureToken |
Rappresenta il |
StringToken |
Rappresenta un token che rappresenta una stringa.Represents a token that represents a string. |
TypeToken |
Rappresenta il |
Enumerazioni
AssemblyBuilderAccess |
Definisce le modalità di accesso per un assembly dinamico.Defines the access modes for a dynamic assembly. |
FlowControl |
Descrive in che modo un'istruzione modifica il flusso di controllo.Describes how an instruction alters the flow of control. |
OpCodeType |
Descrive i tipi delle istruzioni MSIL (Microsoft Intermediate Language).Describes the types of the Microsoft intermediate language (MSIL) instructions. |
OperandType |
Descrive il tipo di operando dell'istruzione MSIL (Microsoft Intermediate Language).Describes the operand type of Microsoft intermediate language (MSIL) instruction. |
PackingSize |
Specifica uno dei due fattori che determinano l'allineamento della memoria dei campi quando viene effettuato il marshalling di un tipo.Specifies one of two factors that determine the memory alignment of fields when a type is marshaled. |
PEFileKinds |
Specifica il tipo del file PE (Portable Executable).Specifies the type of the portable executable (PE) file. |
StackBehaviour |
Descrive l'inserimento e l'estrazione di valori in uno stack.Describes how values are pushed onto a stack or popped off a stack. |