I have 2 separate classes:
- AreaProperties
- FieldProperties
1 AreaProperties can map to 1 FieldProperties. Without changing the design, I want a method to return a List<>
of these objects
What generic collection in C# would be suitable?
I understand I can send 2 Lists and the function would look like:
public List<AreaProperties> Save(ref List<FieldProperties>)
{
..code
}
EDIT: Dror Helper's solution sounds good. However, I recently found out that there is no 1:1 between FieldProperties and AreaProperties. How would I now handle this. I still want to go with a custom class that has an object of FieldProperties and AreaProperties but how would I handle the 1 to many scenario?