Skip to content

Code style: merging type cast with type check#46

Open
rklec wants to merge 1 commit intomadhatter22:feature/drop-support-pre-netstandard2.0from
rklec:patch-9
Open

Code style: merging type cast with type check#46
rklec wants to merge 1 commit intomadhatter22:feature/drop-support-pre-netstandard2.0from
rklec:patch-9

Conversation

@rklec
Copy link

@rklec rklec commented Jun 5, 2024

See https://www.jetbrains.com/help/resharper/MergeCastWithTypeCheck.html

This uses the modern syntax and it prevents a nullable problem, if ConnectionFactory is null for some reason.

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

Successfully merging this pull request may close these issues.

1 participant