コード例 #1
0
 public static IObservable <Unit> SaveAsyncAllLinesAsObservable(string path, string[] contents)
 {
     return(Observable.Start(() => File.WriteAllLines(Utility.GetFullPath(path), contents)));
 }
コード例 #2
0
 public static IObservable <string[]> LoadAsyncAllLinesAsObservable(string path)
 {
     return(Observable.Start(() => File.ReadAllLines(Utility.GetFullPath(path))));
 }
コード例 #3
0
 public static IObservable <Unit> SaveAsyncAllBytesAsObservable(string path, byte[] bytes)
 {
     return(Observable.Start(() => File.WriteAllBytes(Utility.GetFullPath(path), bytes)));
 }