I found something like:
if (!String.IsNullOrEmpty(u.nome))
This code simply check if the name field of the u object is not an empty/null string.
Ok this is very clear for me, but what can I do to check it if a field is not a string but is DateTime object?
Anonymous User
10-Feb-2015If you declare a DateTime, then the default value is DateTime.MinValue, and hence you have to check it like this:
If the DateTime is nullable, well that's a different story: