1 type derived from DisplayNameAttribute
System.Windows.Forms.Design (1)
SRDisplayNameAttribute.cs (1)
8internal sealed class SRDisplayNameAttribute : DisplayNameAttribute
24 instantiations of DisplayNameAttribute
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatResponseFormatTests.cs (1)
210[DisplayName("custom_type_name")]
Utilities\AIJsonUtilitiesTests.cs (3)
549[DisplayName("custom_method_name")] 569[DisplayName("custom_method_name")] 1046[DisplayName("Display Name Title")]
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
527[DisplayName("Something cool")]
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
289Func<string> funcWithDisplayName = [DisplayName("get_user_id")] () => "test"; 295Func<string> funcWithBoth = [DisplayName("my_function")][Description("A test function")] () => "test";
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)
OleDbConnectionStringBuilder.cs (5)
138[DisplayName(DbConnectionStringKeywords.DataSource)] 151[DisplayName(DbConnectionStringKeywords.FileName)] 166[DisplayName(DbConnectionStringKeywords.OleDbServices)] 179[DisplayName(DbConnectionStringKeywords.PersistSecurityInfo)] 191[DisplayName(DbConnectionStringKeywords.Provider)]
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")]
29 references to DisplayNameAttribute
Microsoft.AspNetCore.Components.Forms (1)
ClientValidation\DefaultClientValidationService.cs (1)
302?? property.GetCustomAttribute<DisplayNameAttribute>(inherit: true)?.DisplayName;
Microsoft.AspNetCore.Components.Web (4)
Forms\DisplayName.cs (1)
13/// or <see cref="DisplayNameAttribute"/> if present, or falling back to the property name.
Forms\ExpressionMemberAccessor.cs (2)
69var displayNameAttribute = m.GetCustomAttribute<DisplayNameAttribute>();
Forms\Label.cs (1)
12/// <see cref="System.ComponentModel.DisplayNameAttribute"/> if present, or falling back to the property name.
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
63var displayNameAttribute = attributes.OfType<DisplayNameAttribute>().FirstOrDefault();
Microsoft.Extensions.AI.Abstractions (7)
ChatCompletion\ChatResponseFormat.cs (1)
91schemaName ?? schemaType.GetCustomAttribute<DisplayNameAttribute>()?.DisplayName ?? InvalidNameCharsRegex().Replace(schemaType.Name, "_"),
Functions\AIFunctionFactory.cs (3)
117/// any <see cref="DisplayNameAttribute"/> on <paramref name="method"/>, if available, or else from the name of <paramref name="method"/>. 282/// any <see cref="DisplayNameAttribute"/> on <paramref name="method"/>, if available, or else from the name of <paramref name="method"/>. 702Name = key.Name ?? key.Method.GetCustomAttribute<DisplayNameAttribute>(inherit: true)?.DisplayName ?? GetFunctionName(key.Method);
Functions\AIFunctionFactoryOptions.cs (1)
42/// The name to use for the function. The default value is a name derived from the passed <see cref="Delegate"/> or <see cref="MethodInfo"/> (for example, via a <see cref="DisplayNameAttribute"/> on the method).
Utilities\AIJsonUtilities.Schema.Create.cs (2)
85title ??= method.GetCustomAttribute<DisplayNameAttribute>()?.DisplayName ?? method.Name; 418if (ResolveAttribute<DisplayNameAttribute>() is { } displayNameAttribute)
Microsoft.Extensions.Validation (3)
RuntimeValidatableParameterInfoResolver.cs (2)
82var displayNameAttribute = parameterInfo.GetCustomAttribute<DisplayNameAttribute>();
ValidationOptions.cs (1)
44/// <see cref="System.ComponentModel.DisplayNameAttribute.DisplayName"/> are returned as-is,
netstandard (1)
netstandard.cs (1)
307[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DisplayNameAttribute))]
System (1)
src\runtime\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)