lucenenet
lucenenet copied to clipboard
Replace this type-check-and-cast sequence with an 'as' and a null check
Mentioned in #648
Issues found: https://sonarcloud.io/project/issues?resolved=false&rules=csharpsquid%3AS3247&id=apache_lucenenet
SonarCloud includes a description on how to solve these issues. Use the "Why is this an issue?" link.
No comment needed. This is more readable and is understood to be a better translation from Java to .NET.