mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-17 06:28:42 +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))
|
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
|
// ensure the enumerator type is supported
|
||||||
try
|
try
|
||||||
@ -890,7 +892,9 @@ namespace UnityExplorer
|
|||||||
var cacheKey = keys.GetType().AssemblyQualifiedName;
|
var cacheKey = keys.GetType().AssemblyQualifiedName;
|
||||||
if (!getEnumeratorMethods.ContainsKey(cacheKey))
|
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
|
// test support
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user