↧
Answer by Milney for Unexpected 'is' operator result
Probably because PropertyType is a [Type] object, not a date time object...try:if (prop.PropertyType == typeof(System.DateTimeOffset)) { var p = prop.Name;}Is is for checking the type, i.e.var...
View ArticleUnexpected 'is' operator result
Testing for the DateTimeOffSet using the 'is' operator never passes. In the following sample I know the DateTimeOffset type is one of the properties but it never returns True. Thanks for helping me...
View Article