Can the following code be editted, so that the second method is executed too?
<p>Is there anyway of calling methodB before methodA finishes, so that methodB gets executed? Ive tried numerous ways of implementing it, and none of them worked :(</p>

<hr>

<p>can someone explain? Thanks.</p>

<pre><code>public List&lt;ObjectA&gt; _OurObjectA= new List&lt;ObjectA&gt;();

public  List&lt;ObjectA&gt; methodA()
{

    List&lt;ObjectA&gt; products = new List&lt;ObjectA&gt;();
    ServiceReference1.ServiceClient client = 
      new ServiceReference1.ServiceClient();
    client.getProductCompleted += 
      new EventHandler&lt;ServiceReference1.getProductCompletedEventArgs&gt;(methodB);

    client.getProductAsync();

    return _OurObjectA;
}

void methodB(object sender, ServiceReference1.getProductCompletedEventArgs e)
{
    ObservableCollection&lt;ServiceReference1.ObjectA&gt; products = e.Result;
    foreach (ServiceReference1.ObjectA obj in products)
    {
        ObjectA temp = new ObjectA(obj);
        _OurObjectA.Add(temp);
    }
}
</code></pre>
