Yes, but...
Code Review is indeed a site for doing the same thing in a better way, however... The code you are showing should not be "examplish" if you post it here. I noticed in your Stack Overflow question you had SomeMethod();
, this could make your question be close at Code Review because of being "example or hypothetical code".
In your Stack Overflow question you also had a very specific question: Does anyone know why the code is slower when I comment out the calls to Console.WriteLine?
While good Code Review questions are often of the form:
- How can I make this code faster?
- How can I make this code more readable?
- How is this code? Is it good? Is it bad? What can I improve?
- Is there a way to avoid all these nested if statements?
foo
usebar
\$\endgroup\$