Quantcast
Viewing all articles
Browse latest Browse all 15772

How to get a list of values from a property in an object list

Suppose I have a class Dog with a property of ID as integer and Name as String and I create a list of Dog objects called Dogs. Is there a way to access the column of ID like one would a list of Integer? Or is there a simple way to declare a list of Integer and populate it from a method in the List class?

Thanks!

Viewing all articles
Browse latest Browse all 15772

Trending Articles