Hi everybody,
I have this code:
if (!xe.IsEmpty)
{
elementValue = xe.Value;
if (!String.IsNullOrWhiteSpace(elementValue) && "false"!=elementValue.ToLower())
where elementValue is a string containing the representation of data. So, the string with the data can be:
/ / - I am not 100% sure if we can have such strings, but it will mean empty date
0.00 - this means empty numeric value
false -- this means empty boolean
0x - this means empty binary
etc.
---------
I am wondering if there is a way to figure out a type based on the string represenation and also check if it's empty or not (for that type)?
Thanks in advance.
If it's not broken, fix it until it is.
My Blog