From 7648852bc304e7e8d862b49696d5eca048720892 Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Fri, 20 Jan 2017 10:39:41 -0800 Subject: Fills in overrides for RuntimeAssembly. [tfs-changeset: 1645243] --- .../Runtime/Assemblies/RuntimeAssembly.cs | 30 ++++++++++++++++++++++ .../Runtime/General/NonOverriddenApis.cs | 1 + 2 files changed, 31 insertions(+) diff --git a/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/Assemblies/RuntimeAssembly.cs b/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/Assemblies/RuntimeAssembly.cs index 40991424c..09b31f967 100644 --- a/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/Assemblies/RuntimeAssembly.cs +++ b/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/Assemblies/RuntimeAssembly.cs @@ -19,6 +19,7 @@ using Internal.Reflection.Core; using Internal.Reflection.Core.Execution; using Internal.Reflection.Tracing; +using System.Security; namespace System.Reflection.Runtime.Assemblies { @@ -181,6 +182,35 @@ namespace System.Reflection.Runtime.Assemblies } } + public sealed override bool GlobalAssemblyCache + { + get + { + return false; + } + } + + public sealed override long HostContext + { + get + { + return 0; + } + } + + public sealed override Module LoadModule(string moduleName, byte[] rawModule, byte[] rawSymbolStore) + { + throw new PlatformNotSupportedException(); + } + + public sealed override SecurityRuleSet SecurityRuleSet + { + get + { + return SecurityRuleSet.None; + } + } + private volatile CaseSensitiveTypeCache _lazyCaseSensitiveTypeTable; private sealed class CaseSensitiveTypeCache : ConcurrentUnifier diff --git a/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/NonOverriddenApis.cs b/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/NonOverriddenApis.cs index a747fab31..fb38ee000 100644 --- a/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/NonOverriddenApis.cs +++ b/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/NonOverriddenApis.cs @@ -36,6 +36,7 @@ namespace System.Reflection.Runtime.Assemblies public sealed override Type GetType(string name, bool throwOnError) => base.GetType(name, throwOnError); public sealed override bool IsDynamic => base.IsDynamic; public sealed override string ToString() => base.ToString(); + public sealed override string EscapedCodeBase => base.EscapedCodeBase; #endif //DEBUG } } -- cgit v1.2.3