diff options
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs b/src/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs index b8e1573187..767fadf411 100644 --- a/src/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs +++ b/src/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs @@ -1435,9 +1435,6 @@ namespace System.Reflection private static bool IsCustomAttributeDefined( RuntimeModule decoratedModule, int decoratedMetadataToken, RuntimeType attributeFilterType, int attributeCtorToken, bool mustBeInheritable) { - if (decoratedModule.Assembly.ReflectionOnly) - throw new InvalidOperationException(SR.Arg_ReflectionOnlyCA); - CustomAttributeRecord[] car = CustomAttributeData.GetCustomAttributeRecords(decoratedModule, decoratedMetadataToken); if (attributeFilterType != null) @@ -1490,9 +1487,6 @@ namespace System.Reflection RuntimeModule decoratedModule, int decoratedMetadataToken, int pcaCount, RuntimeType attributeFilterType, bool mustBeInheritable, IList derivedAttributes) { - if (decoratedModule.Assembly.ReflectionOnly) - throw new InvalidOperationException(SR.Arg_ReflectionOnlyCA); - MetadataImport scope = decoratedModule.MetadataImport; CustomAttributeRecord[] car = CustomAttributeData.GetCustomAttributeRecords(decoratedModule, decoratedMetadataToken); |