internal static Exception TryToTimeSpan(string s, out TimeSpan result)
{
XsdDuration duration;
Exception exception;
exception = XsdDuration.TryParse(s, out duration);
if (exception != null)
{
result = TimeSpan.MinValue;
return exception;
}
else
{
return duration.TryToTimeSpan(out result);
}
}