コード例 #1
0
 public static async Task ExportHangout(IHangout hangout, string fileName)
 {
     using (StreamWriter file = new StreamWriter(fileName, false, Encoding.GetEncoding("Windows-1252")))
     {
         IEnumerable <HangoutEventCsv> hangoutEventCsvs =
             from IHangoutEvent h
             in hangout.HangoutEvents
             select new HangoutEventCsv(h);
         await file.WriteAsync(CsvSerializer.SerializeToCsv(hangoutEventCsvs));
     }
 }
コード例 #2
0
 public HangoutViewModel(IHangout hangout)
 {
     Hangout = hangout;
 }