/// <summary> /// 出勤時間書き込み /// </summary> public void setArrivalTimeStamp() { using (TextReader txtRead = _SmbRecordFile.SmbReader(_FileName.ToString())) { _Records = _CsvList.ReadCsv(txtRead); var RecordToday = _Records.FirstOrDefault(record => record.Date.ToString() == _NowTime.ToString("yyyy/MM/dd")); int index = _Records.IndexOf(RecordToday); RecordToday.ArrivalTime = _NowTime.ToString("HH:mm"); _Records[index] = RecordToday; TextWriter txtWrite = _SmbRecordFile.SmbWriter(_FileName.ToString()); _CsvList.WriteCsv(txtWrite, _Records); } }