Use LINQ and Reflection to Find Matching Properties
As a side product of some experiments I wrote simple LINQ query that matches properties of two objects and returns these properties as list. The code I wrote is pretty simple and I packed it for you as method. C# public IList GetMatchingProperties(object source, object target) { if (source == null) throw new ArgumentNullException(“source”); if [...]

Read Users' Comments (0)