Closed DualBrain closed 3 years ago
@DualBrain I just added that for strings this week, I was afraid to do others. I can do it for all the predefined types very easily. Let me know.
As long as they are reference types, I'm assuming that they could be addressed in the same manner. Obviously there are valid places (non-reference types) where the ? is still valid... Integer, Short, Boolean, etc. With that said, the two places where I've run into this most often (so far) are String and Object.
I think I removed it from String this week if I missed a place please upload an example in the PR. Adding Object would be easy but an example would help, I just add to Tests and make sure I get the expected result.
@DualBrain please post an example and what you want it to be, latest release should handle String so if you have an example that don't work please post.
I found several places I was not removing the ? and not add (), they should be fixed in next PR.
@DualBrain should be fixed in Converter 5.0.0.19, reopen with example if you are still having an issue
reopen with example if you are still having an issue
Will do.
Are you able to "automate" the removal of the ? from the conversion for reference types? When removed, add a TODO: comment stating that the original source declared the variable as a Nullable Reference Type and additional code review may be necessary to handle null conditions.