Implemented interface member:
method
IsDefined
System.Reflection.ICustomAttributeProvider.IsDefined(System.Type, System.Boolean)
37 overrides of IsDefined
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
95public override bool IsDefined(Type attributeType, bool inherit)
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
44public override bool IsDefined(Type attributeType, bool inherit) { return _ctor.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
51public override bool IsDefined(Type attributeType, bool inherit) { return _field.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
49public override bool IsDefined(Type attributeType, bool inherit) { return _method.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
57public override bool IsDefined(Type attributeType, bool inherit) { return _method.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
552public override bool IsDefined(Type attributeType, bool inherit)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
269public override bool IsDefined(Type attributeType, bool inherit) { throw new NotSupportedException(); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
201public override bool IsDefined(Type attributeType, bool inherit) => _unmodifiedType.IsDefined(attributeType, inherit);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
177public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
172public override bool IsDefined(Type attributeType, bool inherit) => typeImpl.IsDefined(attributeType, inherit);
System\Reflection\Emit\DynamicMethod.cs (1)
202public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Runtime\General\LegacyCustomAttributeApis.cs (5)
63public sealed override bool IsDefined(Type attributeType, bool inherit) 86public sealed override bool IsDefined(Type attributeType, bool inherit) 109public sealed override bool IsDefined(Type attributeType, bool inherit) 132public sealed override bool IsDefined(Type attributeType, bool inherit) 201public sealed override bool IsDefined(Type attributeType, bool inherit)
System\RuntimeType.NativeAot.cs (1)
798public override bool IsDefined(Type attributeType, bool inherit)
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
171public override bool IsDefined(Type attributeType, bool inherit) { Debug.Assert(false); throw NotImplemented.ByDesign; }
System.Reflection.Context (8)
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
136public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
100public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
116public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
158public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
141public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
260public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
112public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
171public override bool IsDefined(Type attributeType, bool inherit)
System.Reflection.Emit (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
49public override bool IsDefined(Type attributeType, bool inherit) { return _method.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
552public override bool IsDefined(Type attributeType, bool inherit)
System\Reflection\Emit\ArrayMethod.cs (1)
87public override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SymbolMethod);
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (1)
38public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
78public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Fields\RoField.cs (1)
143public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
46public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
168public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Types\RoType.cs (1)
391public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_ReflectionOnlyCA);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
88public override bool IsDefined(Type attributeType, bool inherit)
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
43public override bool IsDefined(Type attributeType, bool inherit) => m_field.IsDefined(attributeType, inherit);
98 references to IsDefined
Aspire.Hosting.Tests (1)
ResourceNotificationTests.cs (1)
1662property.GetMethod?.IsDefined(typeof(CompilerGeneratedAttribute), inherit: false) is not true)
dotnet-svcutil-lib (19)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (1)
601mapping.IsFlags = model.Type.GetTypeInfo().IsDefined(typeof(FlagsAttribute), false);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
1201mapping.IsFlags = model.Type.GetTypeInfo().IsDefined(typeof(FlagsAttribute), false);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
1227if (method.IsDefined(attributeType, false))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (1)
196IsFlags = type.GetTypeInfo().IsDefined(Globals.TypeOfFlagsAttribute, false);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SerializationExtensionMethods.cs (1)
19if (type.IsDefined(attributeType, false))
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
56return type.GetTypeInfo().IsDefined(attributeType, inherit);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\CustomAttributeProvider.cs (3)
101return this.Type.GetTypeInfo().IsDefined(attributeType, inherit); 103return this.MethodInfo.IsDefined(attributeType, inherit); 105return this.MemberInfo.IsDefined(attributeType, inherit);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (2)
378if (service.IsDefined(typeof(ServiceContractAttribute), false)) 401if (t.IsDefined(typeof(ServiceContractAttribute), false))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (8)
1131if (parameters.Length == 1 && parameters[0].ParameterType.IsDefined(typeof(MessageContractAttribute), false)) 1158if (responseType.IsDefined(typeof(MessageContractAttribute), false) && parameters.Length == 0) 1214if (GetParameterType(param).IsDefined(typeof(MessageContractAttribute), false/*inherit*/)) 1219if (returnType != null && returnType.IsDefined(typeof(MessageContractAttribute), false/*inherit*/)) 1295if (!baseType.IsDefined(typeof(MessageContractAttribute), false/*inherit*/)) 1340if (memberInfo.IsDefined(typeof(MessageBodyMemberAttribute), false) || 1341memberInfo.IsDefined(typeof(MessageHeaderAttribute), false) 1368if (memberInfo.IsDefined(typeof(MessageHeaderAttribute), false))
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
93return (type.IsInterface || type.IsClass) && (type.IsDefined(serviceContractAttributeType, false));
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
209_underlyingProperty.IsDefined(attributeType, inherit);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
209_underlyingProperty.IsDefined(attributeType, inherit);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
167displayMetadata.IsFlagsEnum = underlyingType.IsDefined(typeof(FlagsAttribute), inherit: false);
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
91if (modelProperty.PropertyType.IsDefined(typeof(PageModelAttribute), inherit: true))
Microsoft.AspNetCore.OpenApi (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
209_underlyingProperty.IsDefined(attributeType, inherit);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
740IsPreferred = constructor.IsDefined(typeof(ActivatorUtilitiesConstructorAttribute), inherit: false);
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (2)
405if (method.ContainsGenericParameters || !method.IsDefined(typeof(JSInvokableAttribute), inherit: false)) 444if (method.ContainsGenericParameters || !method.IsDefined(typeof(JSInvokableAttribute), inherit: false))
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
417return UnderlyingType.IsDefined(attributeType, inherit);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\EnumDataTypeAttribute.cs (1)
102enumType.IsDefined(typeof(FlagsAttribute), false);
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
214if (attrType != s_exportAttributeType && attrType.IsDefined(typeof(MetadataAttributeAttribute), true))
System.ComponentModel.TypeConverter (4)
System\ComponentModel\EnumConverter.cs (4)
130if (!EnumType.IsDefined(typeof(FlagsAttribute), false) && !Enum.IsDefined(EnumType, value)) 142if (EnumType.IsDefined(typeof(FlagsAttribute), false) && enumName.Contains(',')) 176if (EnumType.IsDefined(typeof(FlagsAttribute), false)) 318return !EnumType.IsDefined(typeof(FlagsAttribute), false);
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilder.cs (1)
411if (attrType != s_exportAttributeType && attrType.GetTypeInfo().IsDefined(typeof(MetadataAttributeAttribute), true))
System.Formats.Asn1 (4)
System\Formats\Asn1\AsnDecoder.Enumerated.cs (1)
206if (enumType.IsDefined(typeof(FlagsAttribute), false))
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
191if (!flagsEnumType.IsDefined(typeof(FlagsAttribute), false))
System\Formats\Asn1\AsnWriter.Enumerated.cs (1)
76if (tEnum.IsDefined(typeof(FlagsAttribute), false))
System\Formats\Asn1\AsnWriter.NamedBitList.cs (1)
107if (!tEnum.IsDefined(typeof(FlagsAttribute), false))
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
410return memberInfo.IsDefined(attributeType, inherit);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3017return member.IsDefined(attributeType, inherit: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
328return propInfo.IsDefined(attributeType, false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
44public override bool IsDefined(Type attributeType, bool inherit) { return _ctor.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
51public override bool IsDefined(Type attributeType, bool inherit) { return _field.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
49public override bool IsDefined(Type attributeType, bool inherit) { return _method.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
57public override bool IsDefined(Type attributeType, bool inherit) { return _method.IsDefined(attributeType, inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
201public override bool IsDefined(Type attributeType, bool inherit) => _unmodifiedType.IsDefined(attributeType, inherit);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
172public override bool IsDefined(Type attributeType, bool inherit) => typeImpl.IsDefined(attributeType, inherit);
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\ClassDataContract.cs (3)
319if (type.IsDefined(Globals.TypeOfCollectionDataContractAttribute, false)) 339if (type.IsDefined(Globals.TypeOfDataContractAttribute, false)) 1122if (method.IsDefined(attributeType, false))
System\Runtime\Serialization\CollectionDataContract.cs (4)
912if (type.IsDefined(Globals.TypeOfCollectionDataContractAttribute, false)) 917if (type.IsSerializable || type.IsDefined(Globals.TypeOfDataContractAttribute, false)) 1034if (type.IsDefined(Globals.TypeOfDataContractAttribute, false)) 1250return type.IsDefined(Globals.TypeOfCollectionDataContractAttribute, false);
System\Runtime\Serialization\DataContract.cs (2)
492if (!type.IsSerializable && !type.IsDefined(Globals.TypeOfDataContractAttribute, false) && !ClassDataContract.IsNonAttributedTypeValidForSerialization(type)) 1126type.IsDefined(Globals.TypeOfDataContractAttribute, false) ||
System\Runtime\Serialization\DataContractSet.cs (1)
422type.IsDefined(Globals.TypeOfDataContractAttribute, false) ||
System\Runtime\Serialization\EnumDataContract.cs (1)
135IsFlags = type.IsDefined(Globals.TypeOfFlagsAttribute, false);
System\Runtime\Serialization\XmlDataContract.cs (2)
140if (type.IsDefined(Globals.TypeOfDataContractAttribute, false)) 142if (type.IsDefined(Globals.TypeOfCollectionDataContractAttribute, false))
System.Private.Xml (2)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
572mapping.IsFlags = model.Type.IsDefined(typeof(FlagsAttribute), false);
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1211mapping.IsFlags = model.Type.IsDefined(typeof(FlagsAttribute), false);
System.Reflection.Context (6)
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
138return UnderlyingConstructor.IsDefined(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
102return UnderlyingEvent.IsDefined(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
118return UnderlyingField.IsDefined(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
160return UnderlyingMethod.IsDefined(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
143return UnderlyingProperty.IsDefined(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingType.cs (1)
262return _typeInfo.IsDefined(attributeType, inherit);
System.Reflection.Emit (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
49public override bool IsDefined(Type attributeType, bool inherit) { return _method.IsDefined(attributeType, inherit); }
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\SerializationEvents.cs (1)
61if (method.IsDefined(attribute, inherit: false))
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
90return _innerEventInfo.IsDefined(attributeType, inherit);
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\SerializationEventsCache.cs (1)
43if (m.IsDefined(attribute, false))
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
43public override bool IsDefined(Type attributeType, bool inherit) => m_field.IsDefined(attributeType, inherit);
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1089if (baseType.IsDefined(typeof(FlagsAttribute), false))
System.ServiceModel.Primitives (17)
Extensions\ReflectionExtensions.cs (1)
61return type.GetTypeInfo().IsDefined(attributeType, inherit);
System\ServiceModel\Description\ServiceReflector.cs (2)
415if (service.IsDefined(typeof(ServiceContractAttribute), false)) 438if (t.IsDefined(typeof(ServiceContractAttribute), false))
System\ServiceModel\Description\TypedMessageConverter.cs (1)
50if (!messageContract.IsDefined(typeof(MessageContractAttribute), false))
System\ServiceModel\Description\TypeLoader.cs (12)
1158if (parameters.Length == 1 && parameters[0].ParameterType.IsDefined(typeof(MessageContractAttribute), false)) 1185if (responseType.IsDefined(typeof(MessageContractAttribute), false) && parameters.Length == 0) 1241if (GetParameterType(param).IsDefined(typeof(MessageContractAttribute), false/*inherit*/)) 1246if (returnType != null && returnType.IsDefined(typeof(MessageContractAttribute), false/*inherit*/)) 1327if (!baseType.IsDefined(typeof(MessageContractAttribute), false/*inherit*/)) 1374if (memberInfo.IsDefined(typeof(MessageBodyMemberAttribute), false) || 1375memberInfo.IsDefined(typeof(MessageHeaderAttribute), false) || 1376memberInfo.IsDefined(typeof(MessageHeaderArrayAttribute), false) || 1377memberInfo.IsDefined(typeof(MessagePropertyAttribute), false) 1406if (memberInfo.IsDefined(typeof(MessageHeaderArrayAttribute), false) || 1407memberInfo.IsDefined(typeof(MessageHeaderAttribute), false)) 1416else if (memberInfo.IsDefined(typeof(MessagePropertyAttribute), false))
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
612if (member.IsDefined(typeof(SoapIgnoreAttribute), false/*inherit*/))
System.Text.Json (2)
System\ReflectionExtensions.cs (1)
48=> constructorInfo.IsDefined(typeof(JsonConstructorAttribute), inherit: false);
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
23private static readonly bool s_isFlagsEnum = typeof(T).IsDefined(typeof(FlagsAttribute), inherit: false);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
135if (!type.IsDefined(typeof(ProjectTargetFrameworkAttribute), false))
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
65if (!type.IsDefined(typeof(ProjectTargetFrameworkAttribute), false))