I wrote this application in C# that downloads historical data from Yahoo Finance. It’s quite simple, and may be a useful example for those learning the language:

https://www.quantconnect.com/blog/downloading-yahoo-finance-data-with-c/

If any questions, please ask!