Прочетете на английски Редактиране

Споделяне чрез


AssemblyLoadContext.ContextualReflectionScope Struct

Definition

Provides a return type used exclusively for EnterContextualReflection(). It is intended to be used as an IDisposable in a using block.

C#
public struct AssemblyLoadContext.ContextualReflectionScope : IDisposable
Inheritance
AssemblyLoadContext.ContextualReflectionScope
Implements

Remarks

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.

Methods

Dispose()

Sets CurrentContextualReflectionContext to the value preceding the call to EnterContextualReflection() which returned this instance.

Applies to

Продукт Версии
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10