mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 22:27:45 +08:00
[IL2CPP] Support private interface implementations on IDictionary and IEnumerable
This commit is contained in:
parent
09a7cd35cf
commit
7ff508b874
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user