Documentation Best Practices
Guidelines for creating excellent .NET library documentation.XML Documentation Comments
Summary Tags
- Keep summaries concise and clear
- Start with a verb in third person
- Focus on what the member does
Parameter Documentation
- Document all parameters
- Explain constraints and valid ranges
- Include null handling behavior
Examples
- Provide working code examples
- Show common use cases
- Include error handling
Code Organization
- Use meaningful namespaces
- Group related functionality
- Follow SOLID principles
- Maintain consistent naming