Skip to content

Commit

Permalink
Fix System.Func import off-by-one (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
slick1015 authored Jul 7, 2024
1 parent d3d7ea4 commit 63e3948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Utils/CorlibReferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static TypeReference Func(this ModuleDefinition module, int n = 0)
{
0 => module.ImportCorlibReference("System", "Func`1"),
1 => module.ImportCorlibReference("System", "Func`2"),
_ => module.ImportCorlibReference("System", $"Func`{n}")
_ => module.ImportCorlibReference("System", $"Func`{n + 1}")
};
}

Expand Down

0 comments on commit 63e3948

Please sign in to comment.