Question: 1. When would you use a lambda function instead of a delegate and why? Are there are disadvantages? 2. Give an example of when a
1. When would you use a lambda function instead of a delegate and why? Are there are disadvantages?
2. Give an example of when a lambda expression would be converted to an expression tree rather than a delegate.
3. How could events (or the general publish/subscribe) be used in a video game? Give an example of a feature from a game that you think could have been implemented that way.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
