Skip to content

Commit 07a97df

Browse files
committed
ToResolverCache should return a Dictionary
fixes ``` Tasks/LinkAssemblies.cs(103,41): error CS1503: Argument 1: cannot convert from 'System.Collections.IDictionary' to 'System.Collections.Generic.Dictionary<string, Mono.Cecil.AssemblyDefinition>' ``` in xamarin-android
1 parent 4aa2cde commit 07a97df

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,9 @@ protected virtual void Dispose (bool disposing)
9797
}
9898

9999
[Obsolete ("Should not be used; was required with previous Cecil versions.")]
100-
public IDictionary ToResolverCache ()
100+
public Dictionary<string, AssemblyDefinition> ToResolverCache ()
101101
{
102-
var resolver_cache = new Hashtable ();
103-
foreach (var pair in cache)
104-
resolver_cache.Add (pair.Key, pair.Value);
105-
106-
return resolver_cache;
102+
return new Dictionary<string, AssemblyDefinition>(cache);
107103
}
108104

109105
public virtual AssemblyDefinition Load (string fileName)

0 commit comments

Comments
 (0)