mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
[IL2CPP] Support private interface implementations on IDictionary and IEnumerable
This commit is contained in:
1 parent
09a7cd35cf
commit
7ff508b874
1 file changed
+6
-2
@@ -804,7 +804,9 @@ namespace UnityExplorer
|
||||
|
||||
if (!getEnumeratorMethods.ContainsKey(key))
|
||||
{
|
||||
getEnumeratorMethods.Add(key, type.GetMethod("GetEnumerator"));
|
||||
var method = type.GetMethod("System_Collections_IEnumerable_GetEnumerator", FLAGS)
|
||||
?? type.GetMethod("GetEnumerator");
|
||||
getEnumeratorMethods.Add(key, method);
|
||||
|
||||
// ensure the enumerator type is supported
|
||||
try
|
||||
@@ -890,7 +892,9 @@ namespace UnityExplorer
|
||||
var cacheKey = keys.GetType().AssemblyQualifiedName;
|
||||
if (!getEnumeratorMethods.ContainsKey(cacheKey))
|
||||
{
|
||||
getEnumeratorMethods.Add(cacheKey, keyCollType.GetMethod("GetEnumerator"));
|
||||
var method = keyCollType.GetMethod("System_Collections_IDictionary_GetEnumerator", FLAGS)
|
||||
?? keyCollType.GetMethod("GetEnumerator");
|
||||
getEnumeratorMethods.Add(cacheKey, method);
|
||||
|
||||
// test support
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user