8 writes to Description
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
DataAnnotationsMetadataProviderTest.cs (5)
35
{ new DisplayAttribute() {
Description
= "d" }, d => d.Description(), "d" },
240
Description
= "This is a description"
448
Description
= nameof(DataAnnotations.Test.Resources.DisplayAttribute_Description),
477
Description
= nameof(DataAnnotations.Test.Resources.DisplayAttribute_Description),
587
Description
= "Model_Description",
ModelMetadataProviderTest.cs (3)
188
new DisplayAttribute {
Description
= "value" }, metadata => metadata.Description
412
var display = new DisplayAttribute() {
Description
= "description" };
472
Description
= nameof(TestResources.DisplayAttribute_CultureSensitiveDescription),
10 references to Description
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
107
!string.IsNullOrEmpty(displayAttribute.
Description
) &&
110
displayMetadata.Description = () => localizer[displayAttribute.
Description
];
System.ComponentModel.Annotations (8)
System\ComponentModel\DataAnnotations\DisplayAttribute.cs (8)
21
private readonly LocalizableString _description = new LocalizableString(nameof(
Description
));
168
/// <see cref="Name" />, <see cref="
Description
" />, <see cref="Prompt" />, and <see cref="GroupName" />.
337
/// This can be either a literal, non-localized string provided to <see cref="
Description
" /> or the
338
/// localized string found when <see cref="ResourceType" /> has been specified and <see cref="
Description
" />
344
/// <see cref="
Description
" /> will be returned.
346
/// When <see cref="ResourceType" /> has been specified and <see cref="
Description
" />
351
/// After setting both the <see cref="ResourceType" /> property and the <see cref="
Description
" /> property,
352
/// but a public static property with a name matching the <see cref="
Description
" /> value couldn't be found