Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Seal classes to silence warnings in Preview 5 - #2852

Merged
jtschuster merged 3 commits into
dotnet:mainfrom
jtschuster:SealClasses
Jun 20, 2022
Merged

jtschuster merged 3 commits into
dotnet:mainfrom
jtschuster:SealClasses

Conversation

@jtschuster

Copy link
Copy Markdown
Member

After updating to SDK Preview 5, there are new warnings about being able to seal classes that breaks the build (CA1852). This PR adds the sealed modifier to classes to silence the warnings.

@jtschuster
jtschuster merged commit 1703386 into dotnet:main Jun 20, 2022
@jtschuster
jtschuster deleted the SealClasses branch June 20, 2022 21:10
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
After updating to SDK Preview 5, there are new warnings about being able to seal classes that breaks the build (CA1852). This PR adds the sealed modifier to classes to silence the warnings.

Commit migrated from dotnet/linker@1703386
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants