From 360f2deff8855e3e6ce62b61dcdcd9e1b097ded8 Mon Sep 17 00:00:00 2001 From: Marcos Henrich Date: Tue, 2 Jun 2015 14:52:02 +0100 Subject: [PATCH] [corlib] MonoAssembly.LoadWithPartialNameInternal. Implemented MonoAssembly.LoadWithPartialNameInternal. Implementation is not 100% correct without handling stackMark properly. Improving this would require the generous amount of work of adding StackCrawlMark support to the runtime. Fixes #27103. --- mcs/class/corlib/System.Reflection/MonoAssembly.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mcs/class/corlib/System.Reflection/MonoAssembly.cs b/mcs/class/corlib/System.Reflection/MonoAssembly.cs index 96ded2372d3..34051bd8368 100644 --- a/mcs/class/corlib/System.Reflection/MonoAssembly.cs +++ b/mcs/class/corlib/System.Reflection/MonoAssembly.cs @@ -139,14 +139,16 @@ namespace System.Reflection { internal static RuntimeAssembly LoadWithPartialNameInternal (String partialName, Evidence securityEvidence, ref StackCrawlMark stackMark) { - AssemblyName an = new AssemblyName(partialName); - return LoadWithPartialNameInternal (an, securityEvidence, ref stackMark); + // Mono runtime does not support StackCrawlMark + //FIXME stackMark should probably change method behavior in some cases. + return (RuntimeAssembly) Assembly.LoadWithPartialName (partialName, securityEvidence); } internal static RuntimeAssembly LoadWithPartialNameInternal (AssemblyName an, Evidence securityEvidence, ref StackCrawlMark stackMark) { - throw new NotImplementedException ("LoadWithPartialNameInternal"); + return LoadWithPartialNameInternal (an.ToString (), securityEvidence, ref stackMark); } + } [ComVisible (true)] -- 2.25.1