I'd like to be able to get the values and count from any model I create.
For example let's say I have a model that looks like this.
public class test
{
public int ID { get; set; }
public string Name { get; set; }
public string Address { get; set; }
}
I want to be able to write code that will look at the model and then get ID, Name, Address and put them into an array. And I don't want the values. But the values from the model. Not the data. As well as getting the count of the values. 3.