Last active
August 29, 2015 14:05
-
-
Save nonnb/db300518bc3f44b2c429 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<StockQuote> parse() | |
{ | |
return sqLoader | |
.getCSVFileContent() | |
.csvList.Skip(1) | |
.Select(line => | |
{ | |
var row = line.Split(','); | |
return new StockQuote | |
{ | |
Date = row[0], | |
Open = Convert.ToDouble(row[1]), | |
High = Convert.ToDouble(row[2]), | |
Low = Convert.ToDouble(row[3]), | |
Close = Convert.ToDouble(row[4]), | |
Volume = Convert.ToInt32(row[5]), | |
AdjClose = Convert.ToDouble(row[6]) | |
}; | |
}) | |
.ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment