Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ILCompiler.Compiler/src/Compiler/NoManifestResourceBlockingPolicy.cs')
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/NoManifestResourceBlockingPolicy.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ILCompiler.Compiler/src/Compiler/NoManifestResourceBlockingPolicy.cs b/src/ILCompiler.Compiler/src/Compiler/NoManifestResourceBlockingPolicy.cs
new file mode 100644
index 000000000..fd58d0e5b
--- /dev/null
+++ b/src/ILCompiler.Compiler/src/Compiler/NoManifestResourceBlockingPolicy.cs
@@ -0,0 +1,19 @@
+// 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>
+ /// A blocking policy that doesn't block any manifest resources.
+ /// </summary>
+ public sealed class NoManifestResourceBlockingPolicy : ManifestResourceBlockingPolicy
+ {
+ public override bool IsManifestResourceBlocked(ModuleDesc module, string resourceName)
+ {
+ return false;
+ }
+ }
+}