33 references to CustomAttribute
System.Private.CoreLib (33)
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); 198return CustomAttribute.IsDefined(this, attributeRuntimeType, inherit);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (3)
986return CustomAttribute.GetCustomAttributes(m_bakedRuntimeType, (typeof(object) as RuntimeType)!, inherit); 999return CustomAttribute.GetCustomAttributes(m_bakedRuntimeType, attributeRuntimeType, inherit); 1012return CustomAttribute.IsDefined(m_bakedRuntimeType, attributeRuntimeType, inherit);
src\System\Reflection\RuntimeAssembly.cs (3)
329return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 339return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 349return 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)
1976AttributeUsageAttribute 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)
174return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!, inherit); 184return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType, inherit); 194return 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)
460return CustomAttribute.GetCustomAttributes(this, (typeof(object) as RuntimeType)!); 471return CustomAttribute.CreateAttributeArrayHelper(attributeRuntimeType, 0); 473return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType); 486return 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);