You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)].
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
The text was updated successfully, but these errors were encountered: