Browsing index pages (2 articles)
↧
Unexpected '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 ArticleAnswer 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 Article
Browsing index pages (2 articles)