diff options
Diffstat (limited to 'src/ILCompiler.Compiler/src/Compiler/ManifestResourceBlockingPolicy.cs')
-rw-r--r-- | src/ILCompiler.Compiler/src/Compiler/ManifestResourceBlockingPolicy.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ILCompiler.Compiler/src/Compiler/ManifestResourceBlockingPolicy.cs b/src/ILCompiler.Compiler/src/Compiler/ManifestResourceBlockingPolicy.cs new file mode 100644 index 000000000..9f61db5bd --- /dev/null +++ b/src/ILCompiler.Compiler/src/Compiler/ManifestResourceBlockingPolicy.cs @@ -0,0 +1,21 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Internal.TypeSystem; + +namespace ILCompiler +{ + /// <summary> + /// Represents a manifest resource blocking policy. The policy dictates whether manifest resources should + /// be generated into the executable. + /// </summary> + public abstract class ManifestResourceBlockingPolicy + { + /// <summary> + /// Returns true if manifest resource with name '<paramref name="resourceName"/>' in module '<paramref name="module"/>' + /// is reflection blocked. + /// </summary> + public abstract bool IsManifestResourceBlocked(ModuleDesc module, string resourceName); + } +} |