Change ClassCleanup default behavior to be "EndOfClass" #1316
Open
Description
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)]
.