Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryParse()

static bool System.Globalization.TimeSpanParse.TryParse ( ReadOnlySpan< char > input,
IFormatProvider formatProvider,
out TimeSpan result )
inlinestaticpackage

Definition at line 724 of file TimeSpanParse.cs.

725 {
726 TimeSpanResult result2 = new TimeSpanResult(throwOnFailure: false, input);
727 if (TryParseTimeSpan(input, TimeSpanStandardStyles.Any, formatProvider, ref result2))
728 {
729 result = result2.parsedTimeSpan;
730 return true;
731 }
732 result = default(TimeSpan);
733 return false;
734 }
static bool TryParseTimeSpan(ReadOnlySpan< char > input, TimeSpanStandardStyles style, IFormatProvider formatProvider, ref TimeSpanResult result)

References System.input, System.Globalization.TimeSpanParse.TimeSpanResult.parsedTimeSpan, and System.Globalization.TimeSpanParse.TryParseTimeSpan().

Referenced by System.TimeSpan.TryParse(), System.TimeSpan.TryParse(), System.TimeSpan.TryParse(), and System.TimeSpan.TryParse().