Implemented interface member:
method
IsDefined
System.Reflection.ICustomAttributeProvider.IsDefined(System.Type, System.Boolean)
48 overrides of IsDefined
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
95public override bool IsDefined(Type attributeType, bool inherit)
System.Private.CoreLib (24)
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\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
368public override bool IsDefined(Type attributeType, bool inherit)
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\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\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\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
550public override bool IsDefined(Type attributeType, bool inherit)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
269public override bool IsDefined(Type attributeType, bool inherit) { throw new NotSupportedException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
198public override bool IsDefined(Type attributeType, bool inherit) => _unmodifiedType.IsDefined(attributeType, inherit);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
173public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
171public override bool IsDefined(Type attributeType, bool inherit) => typeImpl.IsDefined(attributeType, inherit);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
191public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeConstructorBuilder.cs (1)
117public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
290public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (1)
123public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
214public override bool IsDefined(Type attributeType, bool inherit) { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
492public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
185public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
1002public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\Emit\SymbolMethod.cs (1)
127public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
144public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\RuntimeEventInfo.cs (1)
104public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\RuntimeFieldInfo.cs (1)
75public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
187public override bool IsDefined(Type attributeType, bool inherit)
src\System\Reflection\RuntimePropertyInfo.cs (1)
152public override bool IsDefined(Type attributeType, bool inherit)
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\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\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
550public 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)
39public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
80public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Fields\RoField.cs (1)
144public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
47public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
169public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Types\RoType.cs (1)
375public 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);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListBindingHelperTests.cs (1)
913public override bool IsDefined(Type attributeType, bool inherit) => throw new NotImplementedException();
System.Xaml.Tests (3)
Common\CustomConstructorInfo.cs (1)
72public override bool IsDefined(Type attributeType, bool inherit)
Common\CustomMethodInfo.cs (1)
70public override bool IsDefined(Type attributeType, bool inherit)
System\Xaml\XamlMemberTests.cs (1)
2425public override bool IsDefined(Type attributeType, bool inherit)
90 references to IsDefined
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
93return (type.IsInterface || type.IsClass) && (type.IsDefined(serviceContractAttributeType, false));
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))
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\PropertyAsParameterInfo.cs (1)
196_underlyingProperty.IsDefined(attributeType, inherit);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
src\Shared\PropertyAsParameterInfo.cs (1)
196_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\Shared\PropertyAsParameterInfo.cs (1)
196_underlyingProperty.IsDefined(attributeType, inherit);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\MyBaseMyClassTests.vb (2)
4008Assert.True(_wrapperMyBase.IsDefined(GetType(CompilerGeneratedAttribute), False)) 4013Assert.True(_wrapperMyBase.IsDefined(GetType(CompilerGeneratedAttribute), False))
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
735IsPreferred = 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)
131if (!EnumType.IsDefined(typeof(FlagsAttribute), false) && !Enum.IsDefined(EnumType, value)) 143if (EnumType.IsDefined(typeof(FlagsAttribute), false) && enumName.Contains(',')) 177if (EnumType.IsDefined(typeof(FlagsAttribute), false)) 319return !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 (14)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
410return memberInfo.IsDefined(attributeType, inherit);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3000return member.IsDefined(attributeType, inherit: false);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
331return propInfo.IsDefined(attributeType, false);
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\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\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\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\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
198public override bool IsDefined(Type attributeType, bool inherit) => _unmodifiedType.IsDefined(attributeType, inherit);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
171public override bool IsDefined(Type attributeType, bool inherit) => typeImpl.IsDefined(attributeType, inherit);
src\System\Attribute.CoreCLR.cs (5)
56if (element.IsDefined(attributeType, inherit)) 73if (baseProp.IsDefined(attributeType, false)) 183if (element.IsDefined(attributeType, inherit)) 197if (baseEvent.IsDefined(attributeType, false)) 501_ => element.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)) 1120if (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)
475if (!type.IsSerializable && !type.IsDefined(Globals.TypeOfDataContractAttribute, false) && !ClassDataContract.IsNonAttributedTypeValidForSerialization(type)) 1101type.IsDefined(Globals.TypeOfDataContractAttribute, false) ||
System\Runtime\Serialization\DataContractSet.cs (1)
416type.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.Windows.Core (1)
System\Private\Windows\BinaryFormat\SerializationEvents.cs (1)
59if (method.IsDefined(attribute, inherit: 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)
1209mapping.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\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)
1074if (baseType.IsDefined(typeof(FlagsAttribute), false))
System.Text.Json (1)
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))
System.Xaml.Tests (3)
Common\CustomConstructorInfo.cs (1)
74return DelegatingConstructor.IsDefined(attributeType, inherit);
Common\CustomMethodInfo.cs (1)
72return DelegatingMethod.IsDefined(attributeType, inherit);
System\Xaml\XamlMemberTests.cs (1)
2427return DelegatingProperty.IsDefined(attributeType, inherit);