34 references to CustomAttribute
System.Private.CoreLib (34)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
354object[] result = CustomAttribute.CreateAttributeArrayHelper(attributeRuntimeType, includeMethodImplAttribute ? 1 : 0);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (3)
55return CustomAttribute.GetCustomAttributes(this, ObjectType, inherit); 65return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType, inherit); 217return CustomAttribute.IsDefined(this, attributeRuntimeType, inherit);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (3)
980return CustomAttribute.GetCustomAttributes(m_bakedRuntimeType, (typeof(object) as RuntimeType)!, inherit); 993return CustomAttribute.GetCustomAttributes(m_bakedRuntimeType, attributeRuntimeType, inherit); 1006return CustomAttribute.IsDefined(m_bakedRuntimeType, attributeRuntimeType, inherit);
src\System\Reflection\Metadata\RuntimeTypeMetadataUpdateHandler.cs (1)
21=> CustomAttribute.IsCustomAttributeDefined(module, memberToken, (RuntimeType)typeof(MetadataUpdateDeletedAttribute));
src\System\Reflection\RuntimeAssembly.cs (3)
318return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 328return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 338return CustomAttribute.IsDefined(this, attributeRuntimeType);
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (3)
131return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 141return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 151return CustomAttribute.IsDefined(this, attributeRuntimeType);
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
1969AttributeUsageAttribute usage = CustomAttribute.GetAttributeUsage(pca);
src\System\Reflection\RuntimeEventInfo.cs (3)
91return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 101return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 111return CustomAttribute.IsDefined(this, attributeRuntimeType);
src\System\Reflection\RuntimeFieldInfo.cs (3)
62return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 72return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 82return CustomAttribute.IsDefined(this, attributeRuntimeType);
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (3)
173return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!, inherit); 183return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType, inherit); 193return CustomAttribute.IsDefined(this, attributeRuntimeType, inherit);
src\System\Reflection\RuntimeModule.cs (3)
355return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 365return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 375return CustomAttribute.IsDefined(this, attributeRuntimeType);
src\System\Reflection\RuntimeParameterInfo.cs (4)
456return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 467return CustomAttribute.CreateAttributeArrayHelper(attributeRuntimeType, 0); 469return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 482return CustomAttribute.IsDefined(this, attributeRuntimeType);
src\System\Reflection\RuntimePropertyInfo.cs (3)
139return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 149return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 159return CustomAttribute.IsDefined(this, attributeRuntimeType);