This may seem like a silly question but it's something I've never found an answer to.
If I had an array of a class:
public class Folder
{
public int Id { get; set; }
public string Name { get; set; }
}
public Folder[] folders = new Folder[] {};
Is there a way to return all instances of ID without looping through and collecting them all?
If there isn't, what would you consider to be the best way of doing it so that I had an array of integers?
Thanks in advance,
SumGuy
p.s. If anyone can come up with a more appropriate title to this question that would be appreciated as well