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?)
Comments
Post a Comment