Hi,
i see in reflector in inner implementation of the
Microsoft.VisualBasic.Information.IsDate function that looks like that:
public static bool IsDate(object Expression)
{
if (Expression != null)
{
if (Expression is DateTime)
{
return true;
}
if (Expression is string)
{
try
{
DateTime time1 = DateType.FromString((string)
Expression);
return true;
}
catch (Exception)
{
}
}
}
return false;
}
i understand that exceptions in general uses many resources so if i don't
want exceptions to occur in my code if not needed to i should avoid
exception if not muse happend.
so would you recomend using IsDate as a general check in my code??
TIA, z.