1 type derived from DisplayNameAttribute
System.Windows.Forms.Design (1)
SRDisplayNameAttribute.cs (1)
8internal sealed class SRDisplayNameAttribute : DisplayNameAttribute
32 instantiations of DisplayNameAttribute
FormatterWebSite (1)
Controllers\TopLevelValidationController.cs (1)
18[BindProperty, Range(1, 100), DisplayName("Some Display Name For Prop")] public int OptionalRangeDisplayNameProp { get; set; }
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsMetadataProviderTest.cs (6)
72{ new DisplayNameAttribute("DisplayNameValue"), d => d.DisplayName(), "DisplayNameValue"}, 191var displayName = new DisplayNameAttribute("DisplayNameAttributeValue"); 214var displayName = new DisplayNameAttribute("DisplayNameAttributeValue"); 237var displayName = new DisplayNameAttribute("DisplayNameAttributeValue"); 276var displayName = new DisplayNameAttribute("DisplayNameValue"); 314var displayName = new DisplayNameAttribute("DisplayNameValue");
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
BindPropertyIntegrationTest.cs (1)
305[DisplayName("My Display Name"), StringLength(3)] public string DisplayNameStringLengthProp { get; set; }
System.ComponentModel.Primitives (1)
System\ComponentModel\DisplayNameAttribute.cs (1)
19public static readonly DisplayNameAttribute Default = new DisplayNameAttribute();
System.Data.Odbc (2)
System\Data\Odbc\OdbcConnectionStringbuilder.cs (2)
98[DisplayName(DbConnectionStringKeywords.Driver)] 109[DisplayName(DbConnectionStringKeywords.Dsn)]
System.Data.OleDb (5)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.Manual.notsupported.cs (2)
19[System.ComponentModel.DisplayNameAttribute("OLE DB Services")] 23[System.ComponentModel.DisplayNameAttribute("Provider")]
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (3)
134[System.ComponentModel.DisplayNameAttribute("Data Source")] 137[System.ComponentModel.DisplayNameAttribute("File Name")] 144[System.ComponentModel.DisplayNameAttribute("Persist Security Info")]
System.Windows.Forms (9)
System\Windows\Forms\Panels\FlowLayoutPanel.cs (2)
56[DisplayName("FlowBreak")] 64[DisplayName("FlowBreak")]
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (7)
153[DisplayName("Rows")] 161[DisplayName("Columns")] 182[DisplayName("ColumnSpan")] 196[DisplayName("RowSpan")] 211[DisplayName("Row")] 226[DisplayName("Cell")] 239[DisplayName("Column")]
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\DesignerActionListTests.cs (6)
140[DisplayName("DisplayName")] 147[DisplayName("")] 154[DisplayName(null)] 182[DisplayName("DisplayName")] 187[DisplayName("")] 192[DisplayName(null)]
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
2014[DisplayName("DisplayName")]
19 references to DisplayNameAttribute
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
63var displayNameAttribute = attributes.OfType<DisplayNameAttribute>().FirstOrDefault();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (5)
DataAnnotationsMetadataProviderTest.cs (5)
191var displayName = new DisplayNameAttribute("DisplayNameAttributeValue"); 214var displayName = new DisplayNameAttribute("DisplayNameAttributeValue"); 237var displayName = new DisplayNameAttribute("DisplayNameAttributeValue"); 276var displayName = new DisplayNameAttribute("DisplayNameValue"); 314var displayName = new DisplayNameAttribute("DisplayNameValue");
netstandard (1)
netstandard.cs (1)
307[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DisplayNameAttribute))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
293[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DisplayNameAttribute))]
System.ComponentModel.Primitives (4)
System\ComponentModel\DisplayNameAttribute.cs (4)
16/// Specifies the default value for the <see cref='System.ComponentModel.DisplayNameAttribute'/>, 19public static readonly DisplayNameAttribute Default = new DisplayNameAttribute(); 26/// Initializes a new instance of the <see cref='System.ComponentModel.DisplayNameAttribute'/> class. 44obj is DisplayNameAttribute other && other.DisplayName == DisplayName;
System.ComponentModel.TypeConverter (4)
System\ComponentModel\ExtendedPropertyDescriptor.cs (2)
96if (!(Attributes[typeof(DisplayNameAttribute)] is DisplayNameAttribute displayNameAttr) || displayNameAttr.IsDefaultAttribute())
System\ComponentModel\MemberDescriptor.cs (2)
204if (!(Attributes[typeof(DisplayNameAttribute)] is DisplayNameAttribute displayNameAttr) || displayNameAttr.IsDefaultAttribute())
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionList.cs (2)
86if (GetCustomAttribute(info, typeof(DisplayNameAttribute)) is DisplayNameAttribute dispNameAttr)