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

sealed classes cannot be binded as singletons? #61

Open
lsoft opened this issue Oct 7, 2023 · 1 comment
Open

sealed classes cannot be binded as singletons? #61

lsoft opened this issue Oct 7, 2023 · 1 comment
Assignees

Comments

@lsoft
Copy link
Owner

lsoft commented Oct 7, 2023

compilation fails on the following statement

if(someobj is IDisposable d)
{
...
}

tests + fix

@lsoft lsoft self-assigned this Oct 7, 2023
@lsoft
Copy link
Owner Author

lsoft commented Oct 27, 2023

@lsoft probably we can switch to the following pattern in all cases:

if(x is IDisposable)
{
    x.Dispose();
}

and nothing more will required.

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

No branches or pull requests

1 participant