<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.0-rc.1.25451.107" />

RequiresDynamicCodeAttribute

Indicates that the specified method requires the ability to generate new code at runtime, for example through Reflection.
public bool ExcludeStatics { get; set; }

When set to true, indicates that the annotation should not apply to static members.

public string Message { get; }

Gets a message that contains information about the usage of dynamic code.

public string Url { get; set; }

Gets or sets an optional URL that contains more information about the method, why it requires dynamic code, and what options a consumer has to deal with it.

public RequiresDynamicCodeAttribute(string message)

Initializes a new instance of the RequiresDynamicCodeAttribute class with the specified message.