It is known possible to assign a lambda that returns no value to an Action<T> object. How about lambdas that do theoretically return a value? Like this one:
Action<double> result = (x => x + 1);
Will the result just be ignored?
Thank you!
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.
You use a
FuncIf you write it like this then the result can be ignored. Although this example is not terribly useful