Skip to content

Commit

Permalink
LambdaBuilder.SetProperty() needed to respect the type arguments. Bum…
Browse files Browse the repository at this point in the history
…ps to 1.7.1
  • Loading branch information
jeremydmiller committed Jun 10, 2024
1 parent 46fc2a3 commit 32624d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/JasperFx.Core/JasperFx.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Common extension methods and reflection helpers used by JasperFx projects</Description>
<Version>1.7.0</Version>
<Version>1.7.1</Version>
<Authors>Jeremy D. Miller</Authors>
<AssemblyName>JasperFx.Core</AssemblyName>
<PackageId>JasperFx.Core</PackageId>
Expand Down
4 changes: 2 additions & 2 deletions src/JasperFx.Core/Reflection/LambdaBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public static Func<TTarget, TProperty> GetProperty<TTarget, TProperty>(PropertyI
/// <returns></returns>
public static Action<TTarget, TProperty>? SetProperty<TTarget, TProperty>(PropertyInfo property)
{
var target = Expression.Parameter(property.DeclaringType!, "target");
var value = Expression.Parameter(property.PropertyType, "value");
var target = Expression.Parameter(typeof(TTarget), "target");
var value = Expression.Parameter(typeof(TProperty), "value");

var method = property.SetMethod;

Expand Down

0 comments on commit 32624d4

Please sign in to comment.