aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CSV/CsvFileReader.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-02 11:58:55 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-02 11:58:55 +0300
commit1eb4e2409abbcffdab96b5e896cf71850ab13a01 (patch)
tree51b3a09c95c040ce864ccf4920a0b4696108da41 /Software/Visual_Studio/Tango.CSV/CsvFileReader.cs
parent05baf6a0dda66fdc1b66d3f769e709f88b540e1d (diff)
downloadTango-1eb4e2409abbcffdab96b5e896cf71850ab13a01.tar.gz
Tango-1eb4e2409abbcffdab96b5e896cf71850ab13a01.zip
Working on color capture module...
Diffstat (limited to 'Software/Visual_Studio/Tango.CSV/CsvFileReader.cs')
-rw-r--r--Software/Visual_Studio/Tango.CSV/CsvFileReader.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.CSV/CsvFileReader.cs b/Software/Visual_Studio/Tango.CSV/CsvFileReader.cs
index 1ae9404a7..6d1deded2 100644
--- a/Software/Visual_Studio/Tango.CSV/CsvFileReader.cs
+++ b/Software/Visual_Studio/Tango.CSV/CsvFileReader.cs
@@ -273,6 +273,8 @@ namespace Tango.CSV
return (s) => String.IsNullOrEmpty(s) ? 0 : Int32.Parse(s);
if (propertyType == typeof(DateTime))
return (s) => String.IsNullOrEmpty(s) ? DateTimeZero : DateTime.Parse(s);
+ else if (propertyType == typeof(Double))
+ return (s) => String.IsNullOrEmpty(s) ? 0.0 : Double.Parse(s);
else
throw new NotImplementedException();
}