I wasn’t able to find much about how to do this. I’m probably not getting the terminology right.
I have a list of objects:
class Cat()
{
public string Name { get; set; }
}
List<Cat> cats = new List<Cat>();
cats.add(new Cat() { Name = "Felix" } );
cats.add(new Cat() { Name = "Fluffy" } );
How do I get a list of strings from the Name property so it looks like this:
{ "Felix", "Fluffy" }
But if you still need a list use