C# determine a Nullable property DateTime type when using reflection -


I have a question about determining the worthless property type of an object.

ObjectA A Property DateTime? CreateDate;

When I am repeating through properties like the following properties, how can I check that an asset is a tapable date time type?

Thanks

  foreach (ObjectIn.GetType) in PropertyInfo pi. GetProperties ()) {// compare here}  
< / Div>

  pi.PropertyType == type (date time?)  
< / Html>

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -