1325 questions for senior .NET engineer interviews, each with a 30-second answer, the full answer, a deep dive, the follow-ups interviewers ask next, and real-world production problems.
Naming, small methods and classes, clear boundaries, avoiding duplication and hidden side effects, and writing C# that stays readable and maintainable.
Covers intention-revealing names, the .NET naming conventions (PascalCase, camelCase, I-prefix, Async suffix), and avoiding abbreviations, Hungarian notation and type names in identifiers.
Defines clean code in practical terms, separates readability (understanding code now) from maintainability (changing it safely later), and gives observable tests for clean C#.
Explains the real criteria for splitting methods and classes (one level of abstraction, one reason to change, cohesion), and the failure mode of over-splitting into tiny, scattered indirection.
Covers what hidden side effects are and why they cause bugs, command-query separation (CQS), pure functions, immutability with records and init-only properties, and pushing side effects to the edges of the code.
Applies duplication judgment to real code: knowledge versus coincidental duplication, the rule of three, extracting safely under tests, and undoing a wrong abstraction by inlining it back.
A senior code review of a 300-line order method: ranking findings by severity (double charges, partial writes, swallowed errors, hidden time), writing kind and specific review comments, and a safe step-by-step plan to make it readable.