Open
Description
For members with DisplayAttribute
, this logic extracts the first named argument and uses it as the display name:
This chooses a bad display name when the attribute is used like this, for example:
[Display(
ResourceType = typeof(OptionsDisplayStrings),
Description = nameof(OptionsDisplayStrings.DisplayAttributeDescription_CollectionRuleActionOptions_Name))]
The display name ends up as "Microsoft.Diagnostics.Monitoring.WebApi.OptionsDisplayString".