dotnet / dotnet/dotnet-api-docs
Please say how to set the Display Name
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### Type of issue
Typo
### Description
I looked up the DisplayName property to find out how to set it in code. This article has no examples and no mention of how to set the DisplayName. Could you please always include examples? Documentation without examples is not very useful.
[Enter feedback here]
### Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.validationcontext.displayname?view=net-8.0
### Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel.DataAnnotations/ValidationContext.xml
### Document Version Independent Id
b2459688-f6b6-8caa-3cba-81f04003e939
### Article author
@dotnet-bot
Contributor guide
Assessment
This issue has not been assessed yet.