Skip to content

Conversation

stephentoub
Copy link
Member

Contributes to #49944

@stephentoub stephentoub added this to the 6.0.0 milestone Mar 21, 2021
@stephentoub
Copy link
Member Author

Sealing __Canon broke one ConcurrentBag test that tried to CopyTo an Exception[] into an InvalidOperationException[]... the test expected a cast exception, but in release, it didn't get one.

Comment on lines 28 to +31
// SymWrapperCore is never instantiated and is used as an encapsulation class.
// It is our "ISymWrapper.dll" assembly within an assembly.
//------------------------------------------------------------------------------
internal class SymWrapperCore
internal sealed class SymWrapperCore

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should SymWrapperCore be made a static class?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it probably can be.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is CA1052 rule for that ;-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I postponed turning that on in the past due to the number of changes required, but I'll take another look at it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants