PrepAway - Latest Free Exam Questions & Answers

4 Comments on “For each of the following statements, select Yes if the statement is true.

  1. Hans Werner says:

    I see no reason, why “First” should not appear before “Second”. The MSDN clearly states: “The invocation list of a delegate is an ordered set of delegates in which each element of the list invokes exactly one of the methods represented by the delegate. An invocation list can contain duplicate methods. During an invocation, methods are invoked in the order in which they appear in the invocation list. A delegate attempts to invoke every method in its invocation list; duplicates are invoked once for each time they appear in the invocation list.” (https://msdn.microsoft.com/en-us/library/system.delegate(v=vs.110).aspx#Anchor_7)




    0



    0
  2. mao a says:

    The question is if it will show “first” before “second” not if they will execute in that other, if the thread that executes “first” is slow then “second” can finish before.

    As it says on overflow zerocool linked,
    “Do NOT rely on event ordering. All event dispatches should be logically independent, as if they were occurring in parallel. Events are logically independent actions.”




    0



    0

Leave a Reply