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

◆ ParseExact() [4/6]

static TimeSpan System.TimeSpan.ParseExact ( string input,
string format,
IFormatProvider? formatProvider,
TimeSpanStyles styles )
inlinestatic

Definition at line 346 of file TimeSpan.cs.

347 {
348 ValidateStyles(styles, "styles");
349 if (input == null)
350 {
351 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.input);
352 }
353 if (format == null)
354 {
355 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.format);
356 }
357 return TimeSpanParse.ParseExact(input, format, formatProvider, styles);
358 }
static TimeSpan ParseExact(ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider formatProvider, TimeSpanStyles styles)
static void ValidateStyles(TimeSpanStyles style, string parameterName)
Definition TimeSpan.cs:293

References System.format, System.input, System.Globalization.TimeSpanParse.ParseExact(), System.ThrowHelper.ThrowArgumentNullException(), and System.TimeSpan.ValidateStyles().