Skip to content

Add ErrorCode to RuntimeRudeEdit #74666

@tmat

Description

@tmat

Background and Motivation

See #74625

Proposed API

namespace Microsoft.CodeAnalysis.Emit;
{
     public readonly struct RuntimeRudeEdit
     {
+        public int ErrorCode { get; }

+        public RuntimeRudeEdit(string message, int errorCode)

+        [Obsolete("Specify errorCode")]
          public RuntimeRudeEdit(string message);
     }

Usage Examples

Used by Roslyn EnC analyzer in the IDE to specify error code for runtime rude edit.

Alternative Designs

Risks

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions