First, whether the change does what it claims and takes the right approach, then correctness: edge cases, error handling, nulls and concurrency. Next, the things that cause incidents in .NET code, such as blocking on async calls, missing cancellation, queries in loops and missed disposal. Then tests, readability and naming. Leave formatting to automated tools, explain the reason behind each comment, and separate blocking issues from suggestions.
Why interviewers ask this
Code review is where team standards actually live, and how you review shows what you value and how you treat colleagues. The interviewer wants a priority order, from design and correctness down to style, specific technical concerns you check, and a respectful tone that explains reasons. Separating blocking issues from preferences, and automating style debates away, shows you make reviews faster and more useful rather than more painful.
How to structure your answer
- Start with intent and the overall approach.
- Check correctness and the usual .NET pitfalls.
- Review tests, readability and maintainability.
- Explain how you write comments and keep reviews moving.
Example answer
I read the description first and ask whether the approach makes sense before looking at individual lines, because a perfectly written solution to the wrong problem is still the wrong change. Then correctness: edge cases, what happens with nulls or empty collections, error handling, and whether anything could run concurrently. After that I look for the issues that have caused incidents for us before: Result or Wait on async calls, cancellation tokens not passed through, queries inside loops, and objects that should be disposed but are not. I check that the tests prove the behaviour rather than just touching the code. Formatting I leave to the analyzers and formatter in CI. When I comment I explain why, and I label things clearly, so a must fix reads differently from a suggestion or a question. If a thread goes back and forth more than twice, I suggest a quick call instead. And I try to review within a few hours, because a pull request sitting for days costs the team more than most bugs I would catch.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- How do you handle a reviewer who blocks changes over personal preference?
- How large should a pull request be?
- What would you do if you found a serious problem in a pull request that was already approved?
Related .net developer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions