I'm getting "object reference not set to an instance of an object" on the line - people[0].firstName = "Fred";
Can you help? Thanks.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Person
{
public class Person
{
public Person(string fName, string lName)
{
this.firstName = fName;
this.lastName = lName;
}
public string firstName;
public string lastName;
}
++++++ ...
Go to the complete details ...