2013-05-22 8 views
0

을 읽을 수 있습니다 :FluorineFx 솔루션은 클래스가 netConnection.Call에서 응답을 읽어 여기에 응답

public class getCompleteParkOfUser : IPendingServiceCallback 
    { 
     public void ResultReceived(IPendingServiceCall call) 
     { 
      object result = call.Result; 
      MessageBox.Show("Server response: " + result); 
      ArrayCollection items = result as ArrayCollection; 
      foreach (object item in items) 
      { 
       MessageBox.Show(""); 
      } 

     } 
    } 

결과가 좋다 : http://scr.hu/0tgp/6yxdi 하지만 결과는있는 ArrayCollection으로 저장되지 않습니다 : http://scr.hu/0tgp/ovghm 내가 할 수있는 사실상 ' 응답을 읽지 마라.

응답/요청 AMF

답변

0

않습니다 사용해 ..

object item = call.Result; 
IEnumerable enumerable = (IEnumerable)item; 
foreach (object element in enumerable) 
{ 
    // do something with element 
}