P
parez
Hi,
string some = null;
if (some != null && some.Trim() != "")
{
Console.Write("");
}
Above code does not throw a runtime exception..( .net 3.5)
Is it safe to assume the order of expression evaluatin is left to
right.??
or would it be a better idea to do a double ifs
TIA
PS. I know about String.IsnullOrempty
string some = null;
if (some != null && some.Trim() != "")
{
Console.Write("");
}
Above code does not throw a runtime exception..( .net 3.5)
Is it safe to assume the order of expression evaluatin is left to
right.??
or would it be a better idea to do a double ifs
TIA
PS. I know about String.IsnullOrempty