InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

在热修函数中有使用Linq的OrderBy,patch失败

Open lancerrp opened this issue 3 years ago • 0 comments

List list = new List() {1,2,3,4,5 }; list.OrderBy(a => a);

Unhandled Exception:System.ArgumentException: no context type for T_KEY at IFix.CecilExtensions.GetAssemblyQualifiedName (Mono.Cecil.TypeReference typeReference, Mono.Cecil.TypeReference contextType, System.Boolean skipAssemblyQualified, System.Boolean skipAssemblyQualifiedOnce) [0x0020a] in F:\Self\InjectFix-master\Source\VSProj\Src\Tools\CecilExtensions.cs:261 at IFix.CecilExtensions.GetAssemblyQualifiedName (Mono.Cecil.TypeReference typeReference, Mono.Cecil.TypeReference contextType, System.Boolean skipAssemblyQualified, System.Boolean skipAssemblyQualifiedOnce) [0x00168] in F:\Self\InjectFix-master\Source\VSProj\Src\Tools\CecilExtensions.cs:244 at IFix.CodeTranslator.addExternType (Mono.Cecil.TypeReference type, Mono.Cecil.TypeReference contextType) [0x000b5] in F:\Self\InjectFix-master\Source\VSProj\Src\Tools\CodeTranslator.cs:184 at IFix.CodeTranslator.Serialize (System.IO.Stream output) [0x000ae] in F:\Self\InjectFix-master\Source\VSProj\Src\Tools\CodeTranslator.cs:3870 at IFix.CodeTranslator.Serialize (System.String filename) [0x00029] in F:\Self\InjectFix-master\Source\VSProj\Src\Tools\CodeTranslator.cs:3840 at IFix.Program.Main (System.String[] args) [0x00206] in F:\Self\InjectFix-master\Source\VSProj\Src\Tools\CSFix.cs:126

lancerrp avatar May 27 '22 06:05 lancerrp