dotnet / dotnet/dotnet-api-docs
Documentation is incorrect/ambigious
Open
area-System.ComponentModel
Pri3
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel/DefaultValueAttribute.xml
States both that:
> The following example sets the default value of `MyProperty` to `false`.
and
> A will not cause a member to be automatically initialized with the attribute's value. You must set the initial value in your code.
Since the later statement is true, I would suggest updating the previous to:
> The following example specifies the default value `MyProperty` should be `false`.
Contributor guide
Assessment
This issue has not been assessed yet.