Skip to content

Add EmitDifferenceOptions.DisallowExplicitMethodImplementations #81305

@tmat

Description

@tmat

Background and Motivation

The IDE needs to inform the compiler to not allow adding entries to MethodImpl table when emitting EnC delta on .NET Framework.

See #81304

Proposed API

namespace Microsoft.CodeAnalysis.Emit;

public readonly struct EmitDifferenceOptions
{
+   /// <summary>
+   /// True to disallow explicit method implementations in the delta.
+   /// Some runtimes (.NET Framework) do not support this feature.
+   /// </summary>
+   public bool DisallowExplicitMethodImplementations { get; init; }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Concept-APIThis issue involves adding, removing, clarification, or modification of an API.Feature Requestapi-approvedAPI was approved in API review, it can be implemented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions