I'm looking at this code at MSDN:
http://msdn2.microsoft.com/en-us/lib...numerable.aspx
using System;
using System.Collections;
public class Person
{
public Person(string fName, string lName)
{
this.firstName = fName;
this.lastName = lName;
}
public string firstName;
public string lastName;
}
public class People : IEnumerable
{
private Person[] _people; //trying to understand this line
....
I wanted to know how they "all of a sudden" were able to declare the
variable _people as an array of Person[] user defined types. I didn't
see anything that would allow Person to be used as an array like this.
Probably something basic I forgot somewhere, but I can't find the
answer.
Thank you.