For demonstration, let's use this class Person.
class Person
{
public string firstName = String.Empty;
public string lastName = String.Empty;
Person()
{
}
}
Person is a basic class. It has two public members, firstName and lastName and an empty constructor. Now let's say in our program, we have a List of our class:
List
personList = new List
();
Now let's
(
Read more... )