-
Notifications
You must be signed in to change notification settings - Fork 0
C# ‐ Coding Standards, Principles, Practices
Full Stack edited this page May 18, 2025
·
1 revision
- Avoid storing inbound parameter objects as fields inside the implementation class. Instead, pass them as method parameters. This makes the class stateless and thread-safe.
- Move validation and transformation logic to reusable static methods or helper classes if they are shared across rules.
- Log only errors or important milestones, not every step, unless needed for debugging.
- For simple property getters.
- Let exceptions bubble up unless you need to add context or handle specific cases.