Add Block Delimiters
1: // This code is hard to read.
2: if (results != null) {
3: if (results.Contains(aId)) results.Remove(aId);
4: results.Add(aId, aResult);
5: }
But if you have Refactor Pro!, you can do the following:
and the result is much more readable:
1: // Much better
2: if (results != null) {
3: if (results.Contains(aId))
4: {
5: results.Remove(aId);
6: }
7: results.Add(aId, aResult);
8: }