AssemblyLoadContext.ContextualReflectionScope Структура
Определение
Предоставляет тип возвращаемого значения, используемые исключительно для EnterContextualReflection().Provides a return type used exclusively for EnterContextualReflection(). Предназначен для использования в качестве IDisposable в блоке using
.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
- Наследование
- Реализации
Комментарии
Это сведения о EnterContextualReflection реализации интерфейсов API.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. |