Skip to content

Commit

Permalink
Add assembly name to ExpressionBuilder cache key. Fixes #434 (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandPheasant authored May 4, 2022
1 parent dac0ff7 commit 022e813
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DynamicData/Binding/ExpressionBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ internal static string ToCacheKey<TObject, TProperty>(this Expression<Func<TObje

IEnumerable<string?> GetNames()
{
yield return typeof(TObject).FullName;
var type = typeof(TObject);

yield return type.Assembly.FullName;
yield return type.FullName;
foreach (var member in members.Reverse())
{
yield return member.Member.Name;
Expand Down

0 comments on commit 022e813

Please sign in to comment.