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)); } }
public HangoutViewModel(IHangout hangout) { Hangout = hangout; }