summaryrefslogtreecommitdiff
path: root/.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/BlockReflectionAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to '.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/BlockReflectionAttribute.cs')
-rwxr-xr-x.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/BlockReflectionAttribute.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/BlockReflectionAttribute.cs b/.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/BlockReflectionAttribute.cs
new file mode 100755
index 0000000000..0ba997c171
--- /dev/null
+++ b/.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/BlockReflectionAttribute.cs
@@ -0,0 +1,14 @@
+/*
+ Providing a definition for __BlockReflectionAttribute in an assembly is a signal to the .NET Native toolchain
+ to remove the metadata for all non-public APIs. This both reduces size and disables private reflection on those
+ APIs in libraries that include this. The attribute can also be applied to individual public APIs to similarly block them.
+ This file is consumed by Build.Common.Targets.
+*/
+
+using System;
+
+namespace System.Runtime.CompilerServices
+{
+ [AttributeUsage(AttributeTargets.All)]
+ internal class __BlockReflectionAttribute : Attribute { }
+}