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

Closed
Evangelink opened this issue Oct 8, 2022 · 0 comments · Fixed by #1538
Closed

Change ClassCleanup default behavior to be "EndOfClass" #1316

Evangelink opened this issue Oct 8, 2022 · 0 comments · Fixed by #1538

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

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.

3 participants