SamboyCoding / Cpp2IL

Work-in-progress tool to reverse unity's IL2CPP toolchain.
MIT License
1.6k stars 187 forks source link

Type Parameters in Call Analysis #176

Closed ds5678 closed 7 months ago

ds5678 commented 1 year ago

Generic types in the Type field currently don't have type parameters. It may be desirable to retain that information and use it to fill those parameters where feasible. For example, currently it gets emitted as:

[Calls(Type = typeof(Dictionary<,>), Member = "TryGetValue")]

But it would be more enlightening if it was emitted as:

[Calls(Type = typeof(Dictionary<string, Texture2D>), Member = "TryGetValue")]

Note about edge cases: