My question is fairly simple, but I suspect the answer won't be. In my WP7 app, I am calling a REST web service to GET some data which I deserialize into class objects.
My request method and its AsyncCallBack method live inside a class (an MVVM ViewModel), and are invoked from inside an instance method on the class (LoadData).
The AsyncCallBack deserializes the json retrieved from the web service into an object. I need to add this object to a collection on the class where all of this is taking place - like so:
this.Collection1.Add(retrievedObject);
Of course, since AsyncCallBack is static, I can't access the "this" keyword. I also can't return the retrievedObject to the caller, because the AsyncCallBack has to return void. I realize I'm probably the victim of some basic misunderstanding here. How do I solve this?
Thanks!