What design patterns have you found work well with lambda expressions/functions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Lambdas are actively used in IoC containers and DI (for example mock frameworks) nowadays
I can see following GoF patterns in this area:
Moq is using
Proxypattern with active use of lambdas; for example:You can find that lambdas help to implement
Singletonpattern in IoC containers, for example autofac, without limiting yourself in testability, like usual Singleton does:And
Factory Methodpattern by means of proving a constructor call with parameters as type registration:Also
Expression <TDelegate>class is also closely related toInterpreterpattern