dotnet / dotnet/dotnet-api-docs

Documentation is incorrect/ambigious

Open
#8,202 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.