paint-brush
How To Use Filter Pattern With Generic Lambda Expressionby@mirambek-nagashbekov
239 reads

How To Use Filter Pattern With Generic Lambda Expression

by Mirambek Nagashbekov3mSeptember 10th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The filter and pipeline patterns can be optimized with code reduction using lambda expression(shortcuts for anonymous method) as concrete filter condition. To demonstrate concept, the sample WPF UI application was created. The next section will describes view model usage filter pattern. In MVVM the one of responsibilities of the view model is to handle user interaction and data changes. In our case the filter condition value changes should be passed to business layer to apply filters on given data collection. In this sample application, the only one EmployeeTypeselected property filter is demonstrated.
featured image - How To Use Filter Pattern With Generic Lambda Expression
Mirambek Nagashbekov HackerNoon profile picture
Mirambek Nagashbekov

Mirambek Nagashbekov

@mirambek-nagashbekov

L O A D I N G
. . . comments & more!

About Author

Mirambek Nagashbekov HackerNoon profile picture
Mirambek Nagashbekov@mirambek-nagashbekov

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite