20 references to DisplayAttribute
System.ComponentModel.DataAnnotations (10)
DataAnnotations\CompareAttribute.cs (2)
62
DisplayAttribute
display = attributes.OfType<
DisplayAttribute
>().FirstOrDefault();
DataAnnotations\ValidationAttributeStore.cs (6)
42
/// Retrieves the <see cref="
DisplayAttribute
"/> associated with the given type. It may be null.
46
internal
DisplayAttribute
GetTypeDisplayAttribute(ValidationContext validationContext) {
65
/// Retrieves the <see cref="
DisplayAttribute
"/> associated with the given property
69
internal
DisplayAttribute
GetPropertyDisplayAttribute(ValidationContext validationContext) {
150
this.DisplayAttribute = attributes.OfType<
DisplayAttribute
>().SingleOrDefault();
159
internal
DisplayAttribute
DisplayAttribute { get; set; }
DataAnnotations\ValidationContext.cs (2)
163
/// <value>If this name was not explicitly set, this property will consult an associated <see cref="
DisplayAttribute
"/>
226
DisplayAttribute
displayAttribute = null;
System.Web (2)
ModelBinding\DataAnnotationsModelMetadataProvider.cs (2)
72
DisplayAttribute
display = attributes.OfType<
DisplayAttribute
>().FirstOrDefault();
System.Web.DynamicData (8)
DynamicData\MetaColumn.cs (4)
271
var
displayAttribute = Metadata.DisplayAttribute;
499
DisplayAttribute
DisplayAttribute { get; }
549
DisplayAttribute = Attributes.FirstOrDefault<
DisplayAttribute
>();
574
public
DisplayAttribute
DisplayAttribute { get; private set; }
DynamicData\MetaTable.cs (4)
533
var
displayAttribute = column.Metadata.DisplayAttribute;
542
var
displayAttribute = column.Metadata.DisplayAttribute;
794
var
displayAttribute = column.Attributes.FirstOrDefault<
DisplayAttribute
>();