Quantcast
Channel: Unexpected 'is' operator result - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article


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 Article

Browsing all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>