TYPE

RequiresDynamicCodeAttribute

Marks code that may require runtime code generation.

Formal Syntax & Structure

csharp syntaxcsharp
[RequiresDynamicCode("Reason")]

Working Example

Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.[RequiresDynamicCode("Runtime code generation required.")]
C# & .NET Reference