dotnet / dotnet/wpf

[API Proposal]: Mark BrowserInteropHelper/DynamicScriptObject as obsolete

Open
#9,884 0 comments 2 reactions 0 assignees View on GitHub
API suggestion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Background and motivation

Even though XBAP is unsupported and all of the code inside is a dead code (#9855 and #9865), those classes weren't marked as obsolete during removal. Marking it as obsolete will help to developers migrating apps from .NET Framework, and will emit clear message/warnings.

### API Proposal

```diff
namespace System.Windows.Interop;

+ [Obsolete(DiagnosticId = Obsoletions.XBAPDiagId)]
public static class BrowserInteropHelper
{
}

+ [Obsolete(DiagnosticId = Obsoletions.XBAPDiagId)]
public sealed class DynamicScriptObject : DynamicObject
{
}
```

### Risks

There are only benefits.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.