We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PH2101 Dereference Null did not trip on this code:
DataGridViewTextBoxCell assignedCell = row.Cells[_colAssignedValue.Index] as DataGridViewTextBoxCell; if (assignedCell.Value == null) { assignedCell.Value = string.Empty; }
Once IDE0074 was applied, PH2101 did trip on the result:
DataGridViewTextBoxCell assignedCell = row.Cells[_colAssignedValue.Index] as DataGridViewTextBoxCell; assignedCell.Value ??= string.Empty;
Ideally it would have tripped on the original code as well.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PH2101 Dereference Null did not trip on this code:
Once IDE0074 was applied, PH2101 did trip on the result:
Ideally it would have tripped on the original code as well.
The text was updated successfully, but these errors were encountered: