Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ClassCleanup default behavior to be "EndOfClass" #1316

Open
Evangelink opened this issue Oct 8, 2022 · 1 comment · Fixed by #1538
Open

Change ClassCleanup default behavior to be "EndOfClass" #1316

Evangelink opened this issue Oct 8, 2022 · 1 comment · Fixed by #1538
Assignees
Milestone

Comments

@Evangelink
Copy link
Member

Evangelink commented Oct 8, 2022

Summary

Current behavior of ClassCleanupAttribute is to be run at the end of the assembly and not at the end of the class as the name would suggest.

Note that it is possible to change this behavior (locally with a ctor/property) or globally using ClassCleanupExecutionAttribute.

Proposed Enhancement

Change default behavior to be EndOfClass. Although this is a breaking change, it will be possible for users to revert to old behavior simply by adding [assembly: ClassCleanupExecution(ClassCleanupBehavior.EndOfAssembly)].

AB#1711729

@Youssef1313
Copy link
Member

@Evangelink I'm re-opening as the PR that closed this issue was reverted

@Youssef1313 Youssef1313 reopened this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants