I have answered a question in SO. It's correct and I know for sure and it was the only answer that was upvoted(three times).
Out of nowhere, a user comes in (with a reputation of 1), edits my answer which completely changes my answer(into a wrong one) and someone accepted the edit.
Luckily I was there when it happened, so I changed it.
If I hadn't been there, the answer would have invited downvotes or more edits. My question is, shouldn't the one who answered be the one that should be approving the edit?
C#
to realizeif (total != null)
is unnecessary and senseless whentotal
is a non-nullabledecimal
.