Explain how you can assign a lambda expression to a delegate?
Answer Posted / Rakesh Kumar
To assign a lambda expression to a delegate in C#, use the '=' operator: Func<T1, TResult> func = item => SomeExpression; Here, Func<T1, TResult> is the delegate type, and the lambda expression is assigned to it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category