This question already has an answer here:
Assuming I have a model like this (I shortened it a bit):
class NewsletterDatum
{
public string FullName{ get; set; }
public string Email { get; set; }
public string OptOutLink { get; set; }
public long ConciergeId { get; set; }
public long AwardCount { get; set; }
public int YearsMember {get; set; }
public string CardNumber { get; set; }
public string MemberName { get; set; }
public string PointBalance { get; set; }
public List<string> StoredKeyWords { get; set; }
public List<string> FriendIds { get; set; }
}
I want to get the list of properties of this model that are not numerical, is there a way of doing this without comparing types with int, long, decimal, etc..?
Aucun commentaire:
Enregistrer un commentaire