<value> tags.
CSENSE014 - Missing Value Documentation
Severity: Disabled (can be enabled via configuration)Category: Documentation
Code Fix: Yes (generates
<value> placeholder)
Description
Requires a<value> tag for properties. This rule is disabled by default.
When it triggers
Examples that trigger CSENSE014 (when enabled)
Examples that trigger CSENSE014 (when enabled)
Correct examples
Correct examples
Special cases
Write-only properties
Write-only properties
Read-write and read-only properties
Read-write and read-only properties
Configuration
To enable this rule, add the following to your.editorconfig:
CSENSE015 - Stray Value Documentation
Severity: WarningCategory: Documentation
Code Fix: Yes (removes stray tags)
Description
Flags stray or duplicate<value> tags on non-property members or when duplicated.
When it triggers
Examples that trigger CSENSE015
Examples that trigger CSENSE015
Correct examples
Correct examples
Special cases
Write-only properties with <value>
Write-only properties with <value>
<value> tag without triggering CSENSE015.Indexers
Indexers
<value> rather than <returns>.Best Practices
When to use <value> vs <returns>
When to use <value> vs <returns>
Use
<value> for:- Properties (read-only, write-only, or read-write)
- Indexers
<returns> for:- Methods
- Operators
- Delegates
Writing quality <value> documentation
Writing quality <value> documentation
Good
<value> documentation should:- Describe what the property represents, not just repeat the name
- Include units of measurement when applicable
- Mention valid value ranges or constraints
- Avoid low-quality terms like “value” or “property”