Different Ways of Creating a List of Objects in C#

It has always been fun to play with C#. In this post, we will see that how we can create a list of objects with a different approach. So the scenario is, for one of my MVC applications I need to bind the 5 empty rows (a list of 5 objects) to the kendo grid for a bulk insert of the records. So whenever I open that page, kendo grid renders 5 empty rows in editable mode.
In this post, for a better illustration, I have used the example of “Book." Let’s say I want to add multiple books to one library management software. First, let’s create one basic POCO class – Book – with some properties, which looks like the following:

Link: https://dzone.com/articles/different-ways-of-creating-list-of-objects-in-c?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev