System.Reflection.Emit 名前空間
コンパイラまたはツールが、メタデータと MSIL (Microsoft Intermediate Language) を出力し、任意でディスク上に PE ファイルを生成できるようにするクラスが含まれています。 Contains classes that allow a compiler or tool to emit metadata and Microsoft intermediate language (MSIL) and optionally generate a PE file on disk. これらのクラスの主なクライアントは、スクリプト エンジンとコンパイラです。 The primary clients of these classes are script engines and compilers.
クラス
AssemblyBuilder |
動的アセンブリを定義し、表します。Defines and represents a dynamic assembly. |
ConstructorBuilder |
動的クラスのコンストラクターを定義し、表します。Defines and represents a constructor of a dynamic class. |
CustomAttributeBuilder |
カスタム属性の構築を支援します。Helps build custom attributes. |
DynamicILInfo |
トークンを作成するメソッドや、コード、例外処理、およびローカル変数のシグネチャの BLOB を挿入するメソッドなど、動的メソッドの MSIL (Microsoft Intermediate Language) とメタデータを生成する代替の方法をサポートします。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 |
コンパイル、実行、および破棄することのできる動的メソッドを定義し、またそれを表現します。Defines and represents a dynamic method that can be compiled, executed, and discarded. 破棄されたメソッドは、ガベージ コレクションのために利用可能です。Discarded methods are available for garbage collection. |
EnumBuilder |
列挙型を記述および表現します。Describes and represents an enumeration type. |
EventBuilder |
クラスのイベントを定義します。Defines events for a class. |
FieldBuilder |
フィールドを定義および表現します。Defines and represents a field. このクラスは継承できません。This class cannot be inherited. |
GenericTypeParameterBuilder |
動的に定義されているジェネリック型のジェネリック型パラメーターとメソッドを定義して作成します。Defines and creates generic type parameters for dynamically defined generic types and methods. このクラスは継承できません。This class cannot be inherited. |
ILGenerator |
MSIL (Microsoft Intermediate Language) 命令を生成します。Generates Microsoft intermediate language (MSIL) instructions. |
LocalBuilder |
メソッドまたはコンストラクターのローカル変数を表します。Represents a local variable within a method or constructor. |
MethodBuilder |
動的クラスのメソッドまたはコンストラクターを定義し、表わします。Defines and represents a method (or constructor) on a dynamic class. |
MethodRental |
クラスのメソッドを指定して、メソッド本体の実装をすばやく交換する方法を提供します。Provides a fast way to swap method body implementation given a method of a class. |
ModuleBuilder |
動的アセンブリ内のモジュールを定義および表現します。Defines and represents a module in a dynamic assembly. |
OpCodes |
ILGenerator クラス メンバー (Emit(OpCode) など) による出力に対する MSIL (Microsoft Intermediate Language) 命令のフィールド表現を提供します。Provides field representations of the Microsoft Intermediate Language (MSIL) instructions for emission by the ILGenerator class members (such as Emit(OpCode)). |
ParameterBuilder |
パラメーター情報の作成または関連付けを行います。Creates or associates parameter information. |
PropertyBuilder |
型のプロパティを定義します。Defines the properties for a type. |
SignatureHelper |
シグネチャを構築するメソッドを提供します。Provides methods for building signatures. |
TypeBuilder |
実行時のクラスの新しいインスタンスを定義し、作成します。Defines and creates new instances of classes during run time. |
UnmanagedMarshal |
マネージド コードからアンマネージド コードにフィールドをマーシャリングする方法を記述するクラスを表します。Represents the class that describes how to marshal a field from managed to unmanaged code. このクラスは継承できません。This class cannot be inherited. |
構造体
EventToken |
イベントを表すメタデータから返されるトークンを表します。 |
ExceptionHandler |
SetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>) などのメソッドに渡される IL のバイト配列内の例外ハンドラーを表します。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 |
|
Label |
命令ストリームのラベルを表します。Represents a label in the instruction stream. |
MethodToken |
|
OpCode |
IL (中間言語、Intermediate Language) 命令を記述します。Describes an intermediate language (IL) instruction. |
ParameterToken |
|
PropertyToken |
|
SignatureToken |
シグネチャを表すメタデータから返されるトークンを表します。 |
StringToken |
文字列を表すトークンを表します。Represents a token that represents a string. |
TypeToken |
型を表すメタデータから返されるトークンを表します。 |
列挙型
AssemblyBuilderAccess |
動的アセンブリのアクセス モードを定義します。Defines the access modes for a dynamic assembly. |
FlowControl |
命令が制御フローを変更する方法について記述します。Describes how an instruction alters the flow of control. |
OpCodeType |
Microsoft Intermediate Language (MSIL) の命令の型を記述します。Describes the types of the Microsoft intermediate language (MSIL) instructions. |
OperandType |
Microsoft Intermediate Language (MSIL) の命令のオペランド型を記述します。Describes the operand type of Microsoft intermediate language (MSIL) instruction. |
PackingSize |
型をマーシャ リングする際の、フィールドのメモリ アラインメントを決定する 2 つの要素のいずれかを指定します。Specifies one of two factors that determine the memory alignment of fields when a type is marshaled. |
PEFileKinds |
ポータブル実行可能 (PE) ファイルの型を指定します。Specifies the type of the portable executable (PE) file. |
StackBehaviour |
値をスタックにプッシュするまたはスタックからポップする方法について記述します。Describes how values are pushed onto a stack or popped off a stack. |