1 override of AttributeType
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\RoCustomAttributeData.cs (1)
15public sealed override Type AttributeType => _lazyAttributeType ??= ComputeAttributeType()!;
68 references to AttributeType
dotnet-svcutil-lib (1)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
1538.Where(a => a.AttributeType.FullName == Globals.TypeOfDataContractAttribute.FullName)
Microsoft.AspNetCore.Components.WebAssembly (1)
.packages\microsoft.dotnet.hotreload.agent\10.0.100-preview.7.25358.102\contentFiles\cs\net6.0\MetadataUpdateHandlerInvoker.cs (1)
161if (attr.AttributeType.FullName != "System.Reflection.Metadata.MetadataUpdateHandlerAttribute")
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
255if (attributes[i].AttributeType.Name == "StackTraceHiddenAttribute")
Microsoft.AspNetCore.Hosting (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
255if (attributes[i].AttributeType.Name == "StackTraceHiddenAttribute")
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactory.cs (1)
797else if (parameter.CustomAttributes.Any(a => typeof(IFromServiceMetadata).IsAssignableFrom(a.AttributeType)))
src\Shared\PropertyAsParameterInfo.cs (1)
84if (parameters[i].CustomAttributes.Any(a => a.AttributeType == typeof(AsParametersAttribute)))
Microsoft.AspNetCore.Http.Extensions.Tests (3)
PropertyAsParameterInfoTests.cs (3)
83a => typeof(TestAttribute).IsAssignableFrom(a.AttributeType)); 100a => typeof(TestAttribute).IsAssignableFrom(a.AttributeType)); 103a => typeof(SampleAttribute).IsAssignableFrom(a.AttributeType));
Microsoft.AspNetCore.InternalTesting.Tests (1)
TestableAspNetTestAssemblyRunner.cs (1)
59var attributeName = attribute.AttributeType.AssemblyQualifiedName;
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
EndpointMetadataApiDescriptionProvider.cs (2)
277else if (parameter.ParameterInfo.CustomAttributes.Any(a => typeof(IFromServiceMetadata).IsAssignableFrom(a.AttributeType) || typeof(FromKeyedServicesAttribute) == a.AttributeType) ||
src\Shared\PropertyAsParameterInfo.cs (1)
84if (parameters[i].CustomAttributes.Any(a => a.AttributeType == typeof(AsParametersAttribute)))
Microsoft.AspNetCore.OpenApi (3)
Services\OpenApiGenerator.cs (2)
427else if (parameter.CustomAttributes.Any(a => typeof(IFromServiceMetadata).IsAssignableFrom(a.AttributeType) || typeof(FromKeyedServicesAttribute) == a.AttributeType) ||
src\Shared\PropertyAsParameterInfo.cs (1)
84if (parameters[i].CustomAttributes.Any(a => a.AttributeType == typeof(AsParametersAttribute)))
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
255if (attributes[i].AttributeType.Name == "StackTraceHiddenAttribute")
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
255if (attributes[i].AttributeType.Name == "StackTraceHiddenAttribute")
Microsoft.AspNetCore.SignalR.Core (1)
HubOptionsSetup.cs (1)
35if (hubProtocol.GetType().CustomAttributes.Where(a => a.AttributeType.FullName == "Microsoft.AspNetCore.SignalR.Internal.NonDefaultHubProtocolAttribute").Any())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSymbolTests.cs (1)
255Assert.Equal(typeof(DebuggerBrowsableAttribute), attrs[0].AttributeType);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\Engine\DkmClrType.cs (3)
240if (data.AttributeType == typeof(DebuggerBrowsableAttribute)) 267var attributeData = type.GetCustomAttributesData().FirstOrDefault(data => data.AttributeType == typeof(DebuggerDisplayAttribute)); 283var attributesData = type.GetCustomAttributesData().Where(data => data.AttributeType == typeof(DebuggerVisualizerAttribute));
Microsoft.CodeAnalysis.Test.Utilities (4)
Platform\Custom\MetadataSignatureHelper.cs (4)
114if (attribute.AttributeType != typeof(OptionalAttribute) && 115attribute.AttributeType != typeof(InAttribute) && 116attribute.AttributeType != typeof(OutAttribute) && 117attribute.AttributeType != typeof(MarshalAsAttribute))
Microsoft.CodeAnalysis.UnitTests (3)
Collections\DebuggerAttributes.cs (3)
74.SingleOrDefault(a => a.AttributeType == typeof(DebuggerBrowsableAttribute)); 106.Where(a => a.AttributeType == typeof(DebuggerTypeProxyAttribute)) 134.Where(a => a.AttributeType == typeof(DebuggerDisplayAttribute))
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
216Type attrType = attr.AttributeType; 239Type attrType = attr.AttributeType;
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1169if (attributeData.AttributeType != typeof(ConfigurationKeyNameAttribute))
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
133if (attributeData.AttributeType.FullName == "System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute" &&
Microsoft.Extensions.Logging (1)
src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (1)
22if (attributeData.AttributeType.FullName == AliasAttributeTypeFullName &&
Microsoft.Extensions.Logging.Configuration (1)
src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (1)
22if (attributeData.AttributeType.FullName == AliasAttributeTypeFullName &&
Microsoft.Extensions.Telemetry (1)
Logging\Import\ProviderAliasUtilities.cs (1)
25if (attributeData.AttributeType.FullName == AliasAttributeTypeFullName &&
Microsoft.Maui.Controls.Xaml (7)
ApplyPropertiesVisitor.cs (1)
291 attributes.FirstOrDefault(cad => ContentPropertyAttribute.ContentPropertyTypes.Contains(cad.AttributeType.FullName));
CreateValuesVisitor.cs (5)
76 ci.GetParameters().All(pi => pi.CustomAttributes.Any(attr => attr.AttributeType == typeof(ParameterAttribute)))) && 210 ci.GetParameters().All(pi => pi.CustomAttributes.Any(attr => attr.AttributeType == typeof(ParameterAttribute)))); 216 parameter.CustomAttributes.First(ca => ca.AttributeType.FullName == "Microsoft.Maui.Controls.ParameterAttribute") 236 ci.GetParameters().All(pi => pi.CustomAttributes.Any(attr => attr.AttributeType == typeof(ParameterAttribute)))); 314 parameter.CustomAttributes.First(attr => attr.AttributeType == typeof(ParameterAttribute))
XamlServiceProvider.cs (1)
339 && propertyInfo.CustomAttributes.Any(ca => ca.AttributeType == typeof(DoesNotInheritDataTypeAttribute)))
Microsoft.ML.Core (1)
Data\Repository.cs (1)
427a.AttributeType == typeof(AssemblyInformationalVersionAttribute));
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
855Type attributeType = attributeData.AttributeType;
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (1)
72var isFlags = type.CustomAttributes.Any(cad => cad.AttributeType == typeof(FlagsAttribute));
System\Windows\Markup\ParserContext.cs (1)
855Type attributeType = attributeData.AttributeType;
Shared (2)
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
216Type attrType = attr.AttributeType; 239Type attrType = attr.AttributeType;
System.Composition.TypedParts (1)
System\Composition\CompositionContextExtensions.cs (1)
73m.CustomAttributes.Any(ca => ca.AttributeType == typeof(OnImportsSatisfiedAttribute)));
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (12)
44if (attribute.AttributeType.Name == "NullableContextAttribute" && 45attribute.AttributeType.Namespace == CompilerServicesNameSpace && 147if (attribute.AttributeType.Namespace == "System.Diagnostics.CodeAnalysis") 149if (attribute.AttributeType.Name == "NotNullAttribute") 153else if ((attribute.AttributeType.Name == "MaybeNullAttribute" || 154attribute.AttributeType.Name == "MaybeNullWhenAttribute") && 160else if (attribute.AttributeType.Name == "DisallowNullAttribute") 164else if (attribute.AttributeType.Name == "AllowNullAttribute" && 307if (attribute.AttributeType.Name == "NullablePublicOnlyAttribute" && 308attribute.AttributeType.Namespace == CompilerServicesNameSpace && 399if (attribute.AttributeType.Name == "NullableAttribute" && 400attribute.AttributeType.Namespace == CompilerServicesNameSpace &&
src\System\Reflection\RuntimeParameterInfo.cs (1)
302Type attributeType = attributeData.AttributeType;
System.Private.Windows.Core.TestUtilities (3)
DebuggerAttributes.cs (3)
61.SingleOrDefault(a => a.AttributeType == typeof(DebuggerBrowsableAttribute)); 93.Where(a => a.AttributeType == typeof(DebuggerTypeProxyAttribute)) 119.Where(a => a.AttributeType == typeof(DebuggerDisplayAttribute))
xunit.assert (1)
Sdk\AssertHelper.cs (1)
201 type.GetTypeInfo().CustomAttributes.Any(a => a.AttributeType.FullName == "System.Runtime.CompilerServices.CompilerGeneratedAttribute");