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

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -