Affichage des articles dont le libellé est linq. Afficher tous les articles
Affichage des articles dont le libellé est linq. Afficher tous les articles

samedi 10 novembre 2018

C#: Filter method return using Generics and Interception

keywords: Linq, LambdaExpressions, AOP

This article is based on a very specific requirement I found once, I think the result was very nice and deserve the share with the public.

Requirement:

We have several service connectors retrieving data from external sources. Data is then used by business layer.
The problem is we are receiving a large amount of data that we don't need.
We can't filter data on source, the services implementation are out of our reach and don't provide the kind of filter we need.

samedi 11 février 2017

C#: custom IEnumerable.Join() based on complex match

I found myself doing a lot of merging of lists based on complex criterias.