Reputation: 6951
I have a question on how to determine an object's Nullable property type.
ObjectA
has a property DateTime? CreateDate;
When I iterate through its properties like the following code, how do I check if a property is a Nullable DateTime
type?
foreach (PropertyInfo pi in ObjectA.GetType().GetProperties())
{
//do the compare here
}
Upvotes: 25
Views: 26067