Add ErrorCode to RuntimeRudeEdit
Open
api-approved
Concept-API
Feature Request
Interactive-Debugging
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
## Background and Motivation
See https://github.com/dotnet/roslyn/pull/74625
## Proposed API
```diff
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
Contributor guide
Assessment
This issue has not been assessed yet.