From the course: LINQPad Essential Training

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Display difference between two objects

Display difference between two objects - LINQ Tutorial

From the course: LINQPad Essential Training

Display difference between two objects

- [Instructor] Having a good Dif Tool is essential. How many times in your career have you needed to analyze the differences between datasets or determine what has changed between files? We use Dif Tools to help understand code changes between source control branches. Let's look at the Dif Tool in link pad. We can see the differences between objects and the result panel. So what I've done here is I'm declaring two instances or two variables I should say, color one and color two that have type web color. And then I'm using this element at syntax to reach in to my data source and pull one item out. So I'm getting the item at position zero and another item at position seven. Once I have those two items and I can use Util.Dif and I pass in those two references, and then I dump out the results and I get the standard table we've seen in many other examples. So I see that the BluePercent value is zero and it's the same between…

Contents