Code inspection: Confusing body-like statement
Last modified: 08 November 2024tip
This inspection reports statements that look like a body of the previous statement and can cause confusion when reading the code.
In the example below, wr.WriteLine("hello");
looks like a nested statement of using
. ReSharper suggests removing the indent and separating the statements with a new line to improve readability and avoid ambiguity.