You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var obj1 = new Projection
{
Speakers = new [] { new Speaker { Id = 1, Name = "Fizz" } }
};
var obj2 = new Projection
{
Speakers = new [] { new Speaker { Id = 1, Name = "Buzz" } }
};
var diffs = AnyDiff.Diff(obj1, obj2);
As you can see, The Name property of the first Speaker in the array has a different value.
The resulting Difference object is omitting the 0 index in the path. It's .Speakers.Name but it should be .Speakers[0].Name.
Without an index in the Path, I can't really tell which of the objects in the array changed.
Thanks,
Moreno
The text was updated successfully, but these errors were encountered:
BrightSoul
changed the title
Path is missing array index
Path is missing the array index
Nov 9, 2021
Hello there, I'm comparing these two objects:
As you can see, The
Name
property of the firstSpeaker
in the array has a different value.The resulting
Difference
object is omitting the0
index in the path. It's.Speakers.Name
but it should be.Speakers[0].Name
.Without an index in the
Path
, I can't really tell which of the objects in the array changed.Thanks,
Moreno
The text was updated successfully, but these errors were encountered: