C# – How to add to a list

There are four ways to add items to a list: I’ll show examples of all of these methods for adding to a list. Append items with List.Add() You can use List.Add() to append an item to the end of the list. Here’s an example: This outputs the list’s contents: Initialize a list with items You … Read more

C# – Parsing CSV data when a field has commas

When you have commas in your CSV fields, it creates a conflict with the field delimiting commas. In other words, you can’t tell which data belongs to which field. How you deal with this will depend on one question: is the field with the comma enclosed in quotes? Comma is enclosed in quotes Spreadsheet programs … Read more