Kleine änderungen durchgeführt

This commit is contained in:
Husky
2019-07-22 20:12:35 +02:00
parent 7ec76a5edc
commit 44141e37e5
3 changed files with 19 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -21,6 +22,7 @@ namespace CSVParser
double druck;
int geschwindigkeit;
foreach (string partial in Input)
{
UVcsvStrukture strukture = new UVcsvStrukture();
@@ -28,8 +30,8 @@ namespace CSVParser
string datum = parts[1];
string uhrzeit = parts[2];
if(!DateTime.TryParse(datum + " "+uhrzeit,out zeit))
if (!DateTime.TryParse(datum + " " + uhrzeit, out zeit))
throw new Exception("Konnte die datum uhrzeit nicht konventieren");
double.TryParse(parts[3].Replace('.', ','), out temperatur);
@@ -44,6 +46,7 @@ namespace CSVParser
result.Add(strukture);
}
return result;
}
}
}