AssemblyLoadContext.ContextualReflectionScope 構造体
定義
EnterContextualReflection() のみで使用される戻り値の型を返します。Provides a return type used exclusively for EnterContextualReflection(). これは、using
ブロックの IDisposable として使用されることを意図しています。It is intended to be used as an IDisposable in a using
block.
public: value class AssemblyLoadContext::ContextualReflectionScope : IDisposable
public struct AssemblyLoadContext.ContextualReflectionScope : IDisposable
type AssemblyLoadContext.ContextualReflectionScope = struct
interface IDisposable
Public Structure AssemblyLoadContext.ContextualReflectionScope
Implements IDisposable
- 継承
- 実装
注釈
これは、api の実装の詳細です EnterContextualReflection 。This is an implementation detail of the EnterContextualReflection APIs. これは、ヒープの割り当てを回避するための構造体です。It is a struct, to avoid heap allocation. ボックス化を回避するには、パブリックである必要があります。It is required to be public to avoid boxing.
メソッド
Dispose() |
CurrentContextualReflectionContext を、このインスタンスを返した EnterContextualReflection() への呼び出しの前の値に設定します。Sets CurrentContextualReflectionContext to the value preceding the call to EnterContextualReflection() which returned this instance. |