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:
authorDaniel Harvey <dharvey@microsoft.com>2017-01-20 21:39:41 +0300
committerDaniel Harvey <dharvey@microsoft.com>2017-01-20 21:39:41 +0300
commit7648852bc304e7e8d862b49696d5eca048720892 (patch)
treef3404f1421c810b3a3ec57bc06d7073f58b17008
parentabf07c287cb033ebbeb0f11625857ab175cd8652 (diff)
Fills in overrides for RuntimeAssembly.
[tfs-changeset: 1645243]
-rw-r--r--src/System.Private.Reflection.Core/src/System/Reflection/Runtime/Assemblies/RuntimeAssembly.cs30
-rw-r--r--src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/NonOverriddenApis.cs1
2 files changed, 31 insertions, 0 deletions
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<string, RuntimeTypeInfo>
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
}
}