System.IObservable<string>
을 System.IObservable<System.Collections.Generic.List<string>>
으로 변환하려면 어떻게해야합니까?System.IObservable <string> to System.IObservable <System.Collections.Generic.List <string>>
public static IObservable<List<string>> GetUrlList(Uri url) {
var result = (from request in Observable.Return(GetWebRequest(url, false))
from response in Observable.FromAsyncPattern<WebResponse>(
request.BeginGetResponse, request.EndGetResponse)()
from item in GetUrlCollection(response).ToObservable()
select item);
return result;
}
여기서 항목의 유형은 "문자열 목록"입니다. 그걸 IObservable List of strings
으로 변환해야합니다. 이것을 어떻게 할 수 있습니까?