From 1eb4e2409abbcffdab96b5e896cf71850ab13a01 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 2 Apr 2019 11:58:55 +0300 Subject: Working on color capture module... --- Software/Visual_Studio/Tango.CSV/CsvFileReader.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Software/Visual_Studio/Tango.CSV') 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(); } -- cgit v1.3.1