Skip to content

Commit

Permalink
Fix for extra long method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtule committed Nov 8, 2023
1 parent 1593975 commit 34cab9e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
15 changes: 12 additions & 3 deletions Dynamitey/Internal/Optimization/InvokeHelper-Regular.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,20 @@ internal static Type EmitCallSiteFuncType(IEnumerable<Type> argTypes, Type retur
{
try
{
return BuildProxy.EmitCallSiteFuncType(argTypes, returnType);
//Impromptu Interface version 8.04
return BuildProxy.DefaultProxyMaker.EmitCallSiteFuncType(argTypes, returnType);
}
catch (LateType.MissingTypeException ex)
{
throw new TypeLoadException("Cannot Emit long delegates without ImpromptuInterface installed", ex);
{
try
{
//Impromptu Interface 7.X
return BuildProxy.EmitCallSiteFuncType(argTypes, returnType);
}
catch (LateType.MissingTypeException)
{
throw new TypeLoadException("Cannot Emit long delegates without ImpromptuInterface installed", ex);
}
}

}
Expand Down
4 changes: 2 additions & 2 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ImpromptuInterface" Version="8.0.3" />
<PackageReference Include="ImpromptuInterface" Version="8.0.4" />
<PackageReference Include="Microsoft.CSharp" Version="4.*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
Expand All @@ -17,7 +17,7 @@
</ItemGroup>


<ItemGroup >
<ItemGroup>
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>3.0.2</VersionPrefix>
<VersionPrefix>3.0.3</VersionPrefix>
</PropertyGroup>
</Project>

0 comments on commit 34cab9e

Please sign in to comment.