summaryrefslogtreecommitdiff
path: root/packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/BlockReflectionAttribute.cs
blob: 0ba997c171e0b1d18044845ebd2b98809f4cb033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 { }
}