This question already has an answer here:
Given the Following class
public class MaterialSearchResult
{
public long MaterialId { get; set; }
public string MaterialName { get; set; }
public DateTime RequiredDate { get; set; }
public string MaterialTitle { get; set; }
public DateTime CreatedDate { get; set; }
}
How would i get the index of the properties that are of type DateTime in a list?
So i would expect for the above class the results to be 2, 4
Is that possible?
Aucun commentaire:
Enregistrer un commentaire