0

Please help me with this question.

That's multiple choice questions.

Which of the following are true about anonymous methods?
1) Anonymous methods have access to the local state of the containing function member.
2) An anonymous method requires an explicit method signature
3) An anonymous method can impact the lifetime of local variables and parameters of the containing function.
4) An anonymous method can access ref and out parameters of the containing function
5) A struct may not declare an anonymous method which directly references member fields.


In my opinion, the correct answers are #1 and #3. Right?

5
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by atx
0

i agree with snake...

Don't bother posting unless you can add value to the thread. This is the second or third thread this morning where you say "I agree". If you want to get your solved thread count up then help out!

1

1) Anonymous methods have access to the local state of the containing function member.
- true
2) An anonymous method requires an explicit method signature
- false
3) An anonymous method can impact the lifetime of local variables and parameters of the containing function.
- true
4) An anonymous method can access ref and out parameters of the containing function
- true
5) A struct may not declare an anonymous method which directly references member fields.
-true

Votes + Comments
Great!
0

Thanks much.
Only I've read in the MSDN library, that an anonymous method cannot access the ref or out parameters of an outer scope.

What would you say?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.