C# – 1 – First OOP Project (Full Session)

1
14



First project in a new series on object oriented C# programming.

This series is in a “code-along” style, meaning everything is written on the spot and not too much focus is put on learning programming in general, thus this series is for people with prior programming knowledge (although OOP or C# knowledge is not necessarily required).

In this session we write a complete program that:
– Reads from a file (CSV)
– Splits the file up into items/columns
– Imports values into Person objects
– Prints information for each person

The CSV file contains this text:
firstname,lastname,age,occupation
john,doe,29,office worker
jane,doe,31,accountant
mark,zuckerberg,34,CEO

Disclaimer: I do not claim to be an expert in C# programming, and I do not claim to know everything about proper naming schemes etc. If you have any critique of my coding, please feel free to comment, I am always looking to improve.

Nguồn:https://wijstaanvooronzegrondrechten.org/

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here