System.Runtime.CompilerServices 名前空間
マネージド コードを使用するコンパイラ ライターのための機能を提供し、共通言語ランタイムの動作に影響するメタデータの属性を指定できるようにします。 Provides functionality for compiler writers who use managed code to specify attributes in metadata that affect the run-time behavior of the common language runtime.
クラス
AccessedThroughPropertyAttribute |
属性付きフィールドにアクセスするプロパティの名前を指定します。Specifies the name of the property that accesses the attributed field. |
AsyncIteratorStateMachineAttribute |
メソッドが非同期反復子であるかどうかを示します。Indicates whether a method is an asynchronous iterator. |
AsyncMethodBuilderAttribute |
非同期メソッドの戻り値の型として使用される場合に、属性付き型を構築する言語コンパイラによって使用される非同期メソッド ビルダーの型を示します。Indicates the type of the async method builder that should be used by a language compiler to build the attributed type when used as the return type of an async method. |
AsyncStateMachineAttribute |
メソッドが Async または async 修飾子でマークされているかどうかを示します。Indicates whether a method is marked with either the Async or async modifier. |
CallConvCdecl |
メソッドが |
CallConvFastcall |
この呼び出し規則は、このバージョンの .NET ではサポートされていません。This calling convention is not supported in this version of .NET. |
CallConvStdcall |
メソッドが |
CallConvThiscall |
メソッドが |
CallerArgumentExpressionAttribute |
メソッドに渡された式のキャプチャを許可します。Allows capturing of the expressions passed to a method. |
CallerFilePathAttribute |
呼び出し元を格納するソース ファイルの完全パスを取得できるようにします。Allows you to obtain the full path of the source file that contains the caller. これは、コンパイル時のファイル パスです。This is the file path at the time of compile. |
CallerLineNumberAttribute |
ソース ファイル内でメソッドが呼び出される位置の行番号を取得できます。Allows you to obtain the line number in the source file at which the method is called. |
CallerMemberNameAttribute |
メソッドの呼び出し元のメソッド名またはプロパティ名を取得できます。Allows you to obtain the method or property name of the caller to the method. |
CallSite |
動的呼び出しサイトの基本クラス。A dynamic call site base class. この型は、動的サイトのターゲットのパラメーター型として使用されます。This type is used as a parameter type to the dynamic site targets. |
CallSite<T> |
動的サイト型。Dynamic site type. |
CallSiteBinder |
動的呼び出しサイトで動的操作の実行時バインディングを行うクラス。Class responsible for runtime binding of the dynamic operations on the dynamic call site. |
CallSiteHelpers |
DLR CallSite のためのヘルパー メソッドを格納するクラス。Class that contains helper methods for DLR CallSites. |
CallSiteOps |
バインディング規則を作成し、キャッシュします。Creates and caches binding rules. |
Closure |
動的に生成したメソッドのランタイム状態を表します。Represents the runtime state of a dynamically generated method. |
CompilationRelaxationsAttribute |
共通言語ランタイムの just-in-time (JIT) コンパイラによって生成されたコードの厳格度を制御します。Controls the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler. |
CompilerGeneratedAttribute |
コンパイラが生成した要素を、ユーザーが生成した要素と区別します。Distinguishes a compiler-generated element from a user-generated element. このクラスは継承できません。This class cannot be inherited. |
CompilerGlobalScopeAttribute |
グローバル スコープを持っているかのようにクラスを扱うことを示します。Indicates that a class should be treated as if it has global scope. |
CompilerMarshalOverride |
マーシャリングするときに、修飾された変数のインスタンスが実際の型と異なることを示します。Indicates that the modified instance of a variable differs from its true type when marshaling. このクラスは継承できません。This class cannot be inherited. |
ConditionalWeakTable<TKey,TValue> |
コンパイラがマネージド オブジェクトに動的にオブジェクト フィールドをアタッチできるようにします。Enables compilers to dynamically attach object fields to managed objects. |
ContractHelper |
バイナリ リライターがコントラクト エラーの処理に使用するメソッドを提供します。Provides methods that the binary rewriter uses to handle contract failures. |
CppInlineNamespaceAttribute |
C++/CLI でインライン名前空間を定義します。Defines the inline namespace in C++/CLI. |
CustomConstantAttribute |
コンパイラがフィールドまたはメソッド パラメーターに対して永続化できる定数値を定義します。Defines a constant value that a compiler can persist for a field or method parameter. |
DateTimeConstantAttribute |
フィールドまたはパラメーターに対して 8 バイトの DateTime 定数を永続化します。Persists an 8-byte DateTime constant for a field or parameter. |
DebugInfoGenerator |
式ツリーのラムダ式のデバッグ情報を生成します。Generates debug information for lambda expressions in an expression tree. |
DecimalConstantAttribute |
メタデータに Decimal の定数値を格納します。Stores the value of a Decimal constant in metadata. このクラスは継承できません。This class cannot be inherited. |
DefaultDependencyAttribute |
共通言語ランタイム (CLR: Common Language Runtime) に対して、依存関係が読み込まれる可能性を示すヒントを提供します。Provides a hint to the common language runtime (CLR) indicating how likely a dependency is to be loaded. このクラスは、親が DependencyAttribute 属性を指定しない場合に使用するヒントを示すために依存アセンブリで使用されます。This class is used in a dependent assembly to indicate what hint should be used when the parent does not specify the DependencyAttribute attribute. このクラスは継承できません。This class cannot be inherited. |
DependencyAttribute |
どのような場合に参照元アセンブリが依存関係を読み込むかを示します。Indicates when a dependency is to be loaded by the referring assembly. このクラスは継承できません。This class cannot be inherited. |
DisablePrivateReflectionAttribute |
アセンブリの種類に含まれるプライベート メンバーを反射に使用できないことを示します。Indicates that any private members contained in an assembly's types are not available to reflection. |
DiscardableAttribute |
型定義を破棄できるものとしてマークします。Marks a type definition as discardable. |
DynamicAttribute |
メンバーでの Object の使用を動的ディスパッチ型として処理することを示します。Indicates that the use of Object on a member is meant to be treated as a dynamically dispatched type. |
EnumeratorCancellationAttribute |
非同期列挙が可能なメソッドを使用するユーザーは、GetAsyncEnumerator(CancellationToken) からキャンセル トークン値を受け取るパラメーターにマークを付けることができます。Allows users of async-enumerable methods to mark the parameter that should receive the cancellation token value from GetAsyncEnumerator(CancellationToken). |
ExecutionScope |
動的に生成したメソッドのランタイム状態を表します。Represents the runtime state of a dynamically generated method. |
ExtensionAttribute |
メソッドが拡張メソッドであること、またはクラスやアセンブリに拡張メソッドが含まれていることを示します。Indicates that a method is an extension method, or that a class or assembly contains extension methods. |
FixedAddressValueTypeAttribute |
有効期間を通じて、静的な値型フィールドのアドレスを固定します。Fixes the address of a static value type field throughout its lifetime. このクラスは継承できません。This class cannot be inherited. |
FixedBufferAttribute |
指定したプリミティブ型の要素を一定数だけ格納しているものとしてフィールドを処理する必要があることを示します。Indicates that a field should be treated as containing a fixed number of elements of the specified primitive type. このクラスは継承できません。This class cannot be inherited. |
FormattableStringFactory |
複合書式設定文字列とその引数から FormattableString オブジェクトを作成する静的メソッドを提供します。Provides a static method to create a FormattableString object from a composite format string and its arguments. |
HasCopySemanticsAttribute |
このクラスは今後は使用しません。This class is obsolete. このクラスは継承できません。This class cannot be inherited. |
IDispatchConstantAttribute |
属性付きのフィールドまたはパラメーターの既定値が DispatchWrapper のインスタンスであり、WrappedObject が |
IndexerNameAttribute |
インデクサーを直接サポートしていないプログラミング言語でインデクサーを確認できる名前を示します。Indicates the name by which an indexer is known in programming languages that do not support indexers directly. |
InternalsVisibleToAttribute |
通常は現在のアセンブリ内でのみ参照できる型が、指定したアセンブリから参照可能であることを指定します。Specifies that types that are ordinarily visible only within the current assembly are visible to a specified assembly. |
IsBoxed |
修飾されている参照型がボックス化された値型であることを示します。Indicates that the modified reference type is a boxed value type. このクラスは継承できません。This class cannot be inherited. |
IsByRefLikeAttribute |
構造体が参照渡しであることを示します。Indicates that a structure is byref-like. |
IsByValue |
修飾されているメソッドの引数が、値渡しのオブジェクトのセマンティクスを持つものとして解釈される必要があることを示します。Indicates that a modified method argument should be interpreted as having object passed-by-value semantics. この修飾子は参照型に適用されます。This modifier is applied to reference types. このクラスは継承できません。This class cannot be inherited. |
IsConst |
修飾される型に |
IsCopyConstructed |
この型の値のコピーには、型が提供するコピー コンストラクターを使用する必要があることを示します。Indicates that any copying of values of this type must use the copy constructor provided by the type. このクラスは継承できません。This class cannot be inherited. |
IsExplicitlyDereferenced |
マネージド ポインターがメソッド シグネチャ内のポインター パラメーターを表すことを示します。Indicates that a managed pointer represents a pointer parameter within a method signature. このクラスは継承できません。This class cannot be inherited. |
IsExternalInit |
コンパイラによるメタデータの追跡用に予約されています。Reserved to be used by the compiler for tracking metadata. 開発者はソース コードでこのクラスを使用しないでください。This class should not be used by developers in source code. |
IsImplicitlyDereferenced |
修飾されるガベージ コレクション参照がメソッド シグネチャ内の参照パラメーターを表すことを示します。Indicates that the modified garbage collection reference represents a reference parameter within a method signature. このクラスは継承できません。This class cannot be inherited. |
IsJitIntrinsic |
修飾されているメソッドは Just-In-Time (JIT) コンパイラが特殊なコード生成を実行できる組み込み値であることを示します。Indicates that a modified method is an intrinsic value for which the just-in-time (JIT) compiler can perform special code generation. このクラスは継承できません。This class cannot be inherited. |
IsLong |
修飾される整数が標準の C++ |
IsPinned |
修飾されているインスタンスがメモリに固定されていることを示します。Indicates that a modified instance is pinned in memory. このクラスは継承できません。This class cannot be inherited. |
IsReadOnlyAttribute |
プログラム要素を読み取り専用とマークします。Marks a program element as read-only. |
IsSignUnspecifiedByte |
修飾子が符号付きでも、符号なしでもないことを示します。Indicates that a modifier is neither signed nor unsigned. このクラスは継承できません。This class cannot be inherited. |
IsUdtReturn |
戻り値の型がユーザー定義型であることを示します。Indicates that a return type is a user-defined type. このクラスは継承できません。This class cannot be inherited. |
IsVolatile |
フィールドを volatile としてマークします。Marks a field as volatile. このクラスは継承できません。This class cannot be inherited. |
IteratorStateMachineAttribute |
Visual Basic のメソッドが |
IUnknownConstantAttribute |
属性付きのフィールドまたはパラメーターの既定値が UnknownWrapper のインスタンスであり、WrappedObject が |
MethodImplAttribute |
メソッドの実装方法の詳細を指定します。Specifies the details of how a method is implemented. このクラスは継承できません。This class cannot be inherited. |
ModuleInitializerAttribute |
メソッドを、それが含まれているモジュールの初期化子で呼び出す必要があることを、コンパイラに示すために使用します。Used to indicate to the compiler that a method should be called in its containing module's initializer. |
NativeCppClassAttribute |
型がアンマネージ型であることを示すアセンブリにメタデータを適用します。Applies metadata to an assembly that indicates that a type is an unmanaged type. このクラスは継承できません。This class cannot be inherited. |
PreserveBaseOverridesAttribute |
メソッドの基本シグネチャまたは派生シグネチャのどれを使用しているかにかかわらず、メソッドに対する任意の仮想呼び出しで、最も派生されたオーバーライドを実行します。Ensures that any virtual call to the method, whether it uses the base signature or derived signature of the method, executes the most derived override. |
ReadOnlyCollectionBuilder<T> |
読み取り専用のコレクションのビルダー。The builder for read only collection. |
ReferenceAssemblyAttribute |
アセンブリが参照アセンブリであり、実行可能コードではなくメタデータを格納していることを識別します。Identifies an assembly as a reference assembly, which contains metadata but no executable code. |
RequiredAttributeAttribute |
インポート元のコンパイラが、型定義のセマンティクスを十分に理解している必要があるか、またはその使用を拒否する必要があることを示します。Specifies that an importing compiler must fully understand the semantics of a type definition, or refuse to use it. このクラスは継承できません。This class cannot be inherited. |
RuleCache<T> |
実行時バインディング規則のキャッシュを表します。Represents a cache of runtime binding rules. |
RuntimeCompatibilityAttribute |
Exception クラスから派生していない例外を RuntimeWrappedException オブジェクトでラップするかどうかを指定します。Specifies whether to wrap exceptions that do not derive from the Exception class with a RuntimeWrappedException object. このクラスは継承できません。This class cannot be inherited. |
RuntimeFeature |
共通言語ランタイムによって特定の機能がサポートされているかどうかを判断するための API を定義します。Defines APIs to determine whether specific features are supported by the common language runtime. |
RuntimeHelpers |
コンパイラのサポートを提供する静的メソッドと静的プロパティのセットを提供します。Provides a set of static methods and properties that provide support for compilers. このクラスは継承できません。This class cannot be inherited. |
RuntimeOps |
動的に生成されるメソッドから呼び出されるヘルパー メソッドが含まれています。Contains helper methods called from dynamically generated methods. |
RuntimeWrappedException |
Exception クラスから派生していない例外をラップします。Wraps an exception that does not derive from the Exception class. このクラスは継承できません。This class cannot be inherited. |
ScopelessEnumAttribute |
ネイティブな列挙値が列挙型名で修飾されていないことを示します。Indicates that a native enumeration is not qualified by the enumeration type name. このクラスは継承できません。This class cannot be inherited. |
SkipLocalsInitAttribute |
メタデータへの出力時に、入れ子になったメソッドのヘッダーで .locals の初期化フラグを設定しないことをコンパイラに指示します。Indicates to the compiler that the .locals init flag should not be set in nested method headers when emitting to metadata. |
SpecialNameAttribute |
ランタイムやツールが型またはメンバーを特別な方法で処理することを示します。Indicates that a type or member is treated in a special way by the runtime or tools. このクラスは継承できません。This class cannot be inherited. |
StateMachineAttribute |
メソッドがステート マシン メソッドであるかどうかを判断できます。Allows you to determine whether a method is a state machine method. |
StringFreezingAttribute |
非推奨。Deprecated. Ngen.exe (ネイティブ イメージ ジェネレーター) を使用してネイティブ イメージを作成するときにリテラル文字列を固定します。Freezes a string literal when creating native images using the Ngen.exe (Native Image Generator). このクラスは継承できません。This class cannot be inherited. |
StrongBox<T> |
値への参照を保持します。Holds a reference to a value. |
SuppressIldasmAttribute |
Ildasm.exe (IL 逆アセンブラー) によってアセンブリが逆アセンブルされるのを防ぎます。Prevents the Ildasm.exe (IL Disassembler) from disassembling an assembly. このクラスは継承できません。This class cannot be inherited. |
SwitchExpressionException |
実行時に、完全一致ではないスイッチ式がその入力に一致しなかったことを示します。Indicates that a switch expression that was non-exhaustive failed to match its input at runtime. 例外には、一致しない値を表すオブジェクトが含まれている場合があります。The exception optionally contains an object representing the unmatched value. |
TupleElementNamesAttribute |
メンバーの値のタプルの使用が要素名を持つタプルとして処理させるためであることを示します。Indicates that the use of a value tuple on a member is meant to be treated as a tuple with element names. |
TypeForwardedFromAttribute |
別のアセンブリ内にある転送元の Type を指定します。Specifies a source Type in another assembly. |
TypeForwardedToAttribute |
別のアセンブリ内にある転送先の Type を指定します。Specifies a destination Type in another assembly. |
Unsafe |
ポインターを操作するための一般的な低レベルの機能が含まれています。Contains generic, low-level functionality for manipulating pointers. |
UnsafeValueTypeAttribute |
オーバーフローする可能性があるアンマネージ配列が格納される型であることを指定します。Specifies that a type contains an unmanaged array that might potentially overflow. このクラスは継承できません。This class cannot be inherited. |
構造体
AsyncIteratorMethodBuilder |
非同期反復子のビルダーを表します。Represents a builder for asynchronous iterators. |
AsyncTaskMethodBuilder |
タスクを返す非同期メソッドのビルダーを表します。Represents a builder for asynchronous methods that return a task. |
AsyncTaskMethodBuilder<TResult> |
タスクを返す非同期メソッドのビルダーを表し、結果のパラメーターを指定します。Represents a builder for asynchronous methods that returns a task and provides a parameter for the result. |
AsyncValueTaskMethodBuilder |
ValueTask を返す非同期メソッドのビルダーを表します。Represents a builder for asynchronous methods that return a ValueTask. |
AsyncValueTaskMethodBuilder<TResult> |
ValueTask<TResult> を返す非同期メソッドのビルダーを表します。Represents a builder for asynchronous methods that returns a ValueTask<TResult>. |
AsyncVoidMethodBuilder |
値を返さない非同期メソッドのビルダーを表します。Represents a builder for asynchronous methods that do not return a value. |
ConfiguredAsyncDisposable |
IAsyncDisposable での待機方法の公正に利用できる型を提供します。Provides a type that can be used to configure how awaits on an IAsyncDisposable are performed. |
ConfiguredCancelableAsyncEnumerable<T>.Enumerator |
取り消し可能なイテレーションと待機の構成を可能にする待機可能非同期列挙子を提供します。Provides an awaitable async enumerator that enables cancelable iteration and configured awaits. |
ConfiguredCancelableAsyncEnumerable<T> |
取り消し可能なイテレーションと待機の構成を可能にする待機可能非同期の列挙可能を提供します。Provides an awaitable async enumerable that enables cancelable iteration and configured awaits. |
ConfiguredTaskAwaitable |
タスクに対する待機を構成できる待機可能オブジェクトを提供します。Provides an awaitable object that enables configured awaits on a task. |
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter |
待機可能な (ConfiguredTaskAwaitable) オブジェクトに awaiter を提供します。Provides an awaiter for an awaitable (ConfiguredTaskAwaitable) object. |
ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter |
待機可能なオブジェクト (ConfiguredTaskAwaitable<TResult>) に awaiter を提供します。Provides an awaiter for an awaitable object(ConfiguredTaskAwaitable<TResult>). |
ConfiguredTaskAwaitable<TResult> |
タスクに対する待機を構成できる待機可能オブジェクトを提供します。Provides an awaitable object that enables configured awaits on a task. |
ConfiguredValueTaskAwaitable |
ValueTask に対する待機を構成できる待機可能型を提供します。Provides an awaitable type that enables configured awaits on a ValueTask. |
ConfiguredValueTaskAwaitable.ConfiguredValueTaskAwaiter |
ConfiguredValueTaskAwaitable の awaiter を提供します。Provides an awaiter for a ConfiguredValueTaskAwaitable. |
ConfiguredValueTaskAwaitable<TResult>.ConfiguredValueTaskAwaiter |
ConfiguredValueTaskAwaitable<TResult> の awaiter を提供します。Provides an awaiter for a ConfiguredValueTaskAwaitable<TResult>. |
ConfiguredValueTaskAwaitable<TResult> |
ValueTask<TResult> に対する待機を構成できる待機可能型を提供します。Provides an awaitable type that enables configured awaits on a ValueTask<TResult>. |
TaskAwaiter |
非同期タスクが完了するまで待機するオブジェクトを提供します。Provides an object that waits for the completion of an asynchronous task. |
TaskAwaiter<TResult> |
非同期タスクが完了するまで待機し、結果のパラメーターを提供するオブジェクトを表します。Represents an object that waits for the completion of an asynchronous task and provides a parameter for the result. |
ValueTaskAwaiter |
ValueTask の awaiter を提供します。Provides an awaiter for a ValueTask. |
ValueTaskAwaiter<TResult> |
ValueTask<TResult> の awaiter を提供します。Provides an awaiter for a ValueTask<TResult>. |
YieldAwaitable |
ターゲット環境に非同期的に切り替える際に待機するコンテキストを提供します。Provides the context for waiting when asynchronously switching into a target environment. |
YieldAwaitable.YieldAwaiter |
ターゲット環境に切り替えるための待機可能な awaiter を提供します。Provides an awaiter for switching into a target environment. |
インターフェイス
IAsyncStateMachine |
非同期メソッドに生成されるステート マシンを表します。Represents state machines that are generated for asynchronous methods. この型はコンパイラでのみ使用されます。This type is intended for compiler use only. |
ICriticalNotifyCompletion |
待機操作の完了時に継続をスケジュールする awaiter を表します。Represents an awaiter that schedules continuations when an await operation completes. |
INotifyCompletion |
操作の完了時に継続をスケジュールする操作を表します。Represents an operation that schedules continuations when it completes. |
IRuntimeVariables |
ランタイム変数の値を表します。Represents the values of run-time variables. |
IStrongBox |
オブジェクトが参照する値にアクセスするためのプロパティを定義します。Defines a property for accessing the value that an object references. |
ITuple |
基になるタプル型を知らなくてもタプル インスタンス メンバーへのアクセスを許可する、汎用的なタプルの実装を定義します。Defines a general-purpose Tuple implementation that allows access to Tuple instance members without knowing the underlying Tuple type. |
列挙型
CompilationRelaxations |
共通言語ランタイムの Just-In-Time (JIT) コンパイラが生成するコードの厳格度を制御するパラメーターを指定します。Specifies parameters that control the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler. |
LoadHint |
依存アセンブリに推奨される既定のバインディングを指定します。Specifies the preferred default binding for a dependent assembly. |
MethodCodeType |
メソッドを実装する方法を定義します。Defines how a method is implemented. |
MethodImplOptions |
メソッドの実装方法の詳細を定義する定数を指定します。Specifies constants that define the details of how a method is implemented. |
代理人
ConditionalWeakTable<TKey,TValue>.CreateValueCallback |
ConditionalWeakTable<TKey,TValue> オブジェクトにキー/値ペアの一部として追加する既定値以外の値を作成するメソッドを表します。Represents a method that creates a non-default value to add as part of a key/value pair to a ConditionalWeakTable<TKey,TValue> object. |
RuntimeHelpers.CleanupCode |
例外が発生したときに実行するメソッドを表します。Represents a method to run when an exception occurs. |
RuntimeHelpers.TryCode |
try ブロックで実行する必要があるコードへのデリゲートを表します。Represents a delegate to code that should be run in a try block. |
注釈
この名前空間は、主にコンパイラの作成者を対象としていますが、などのいくつかのクラスは、さまざまなアプリケーションで使用されてい InternalsVisibleToAttribute ます。This namespace is primarily for compiler writers, although several of its classes, such as InternalsVisibleToAttribute, are used in a wide variety of applications.