I have a class with 3 properties:
public class person
{
public int age {get; set;}
public string adress {get; set;}
...
}
Is there a way using reflection to get the types of the attribues saying I wanna have int and string
I tried using
typeof(person).GetProperty("age")
but I did not succeeded to get int (ans string for the adress attribute)
Thank you in advance