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 [...]

Share

Read Users' Comments (0)

Guidelines and Best Practices in Optimizing LINQ

Language Integrated Query (LINQ) is a query execution pipeline for use in the managed environment of .NET Framework. In essence, LINQ is Microsoft’s object relational mapper between your business objects and the underlying data sources and provides a simplified framework for accessing relational data in an object-oriented fashion. Although LINQ is great in the sense [...]

Share

Tags: , ,

Read Users' Comments (1)