Here are my C# classes:
public class myClass {
// Some properties irrelevant to the question
public List<someObject> ListOfStuff { get; set; }
}
public class someObject {
public string Id { get; set; }
public string Name { get; set; }
}
Question: is it possible to extract all Id into a separate array and all Name into another separate array?
For instance, something like this:
myClass foo;
// Populate foo...
List<string> names = foo.ListOfStuff( what goes here? );