From b2264e18523274aa956c55c219729d3e43d3c93c Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Fri, 2 Mar 2018 23:41:55 +0100 Subject: Hide ReflectionBlockedAttribute from public surface --- .../System/Runtime/CompilerServices/ReflectionBlockedAttribute.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/ReflectionBlockedAttribute.cs b/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/ReflectionBlockedAttribute.cs index f80f7093e..5e01e09ca 100644 --- a/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/ReflectionBlockedAttribute.cs +++ b/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/ReflectionBlockedAttribute.cs @@ -7,7 +7,10 @@ namespace System.Runtime.CompilerServices // When applied to a type this custom attribute cause the type to be treated as reflection blocked. [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Delegate | AttributeTargets.Enum | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] [DependencyReductionRoot] - public class ReflectionBlockedAttribute : Attribute +#if !MONO + public +#endif + class ReflectionBlockedAttribute : Attribute { } } -- cgit v1.2.3