Class Design - Returning a List<Object> From <Object>
- by Mike
Given a simple class:
public class Person
{
public string FirstName;
public string LastName;
public string GetFullName()
{
return FirstName + LastName;
}
}
The user of this class will populate a List<Person> object by reading an Xml file or some other data source. Should the logic for populating the List be in…