This is a Fody add-in that is simply adding tailcall IL prefix.
Available on NuGet
Insert below section into your csproj:
<ItemGroup>
<PackageReference Include="Fody" Version="6.0.0" PrivateAssets="All" />
<PackageReference Include="TailCall.Fody" Version="*" PrivateAssets="All" />
</ItemGroup>Add <TailCall /> to your FodyWeavers.xml
<Weavers>
<TailCall />
</Weavers>then all functions called at tail will be prefixed.
- Does not treat ValueType instance method calls
- Does not treat generic type instance's method calls without constraints
where T : class - Does not treat a method that has any byreference parameters
MIT