Beispiel #1
0
 public static TimeSpan Parse(string input, IFormatProvider?formatProvider)
 {
     if (input == null)
     {
         ThrowHelper.ThrowArgumentNullException(ExceptionArgument.input);
     }
     return(TimeSpanParse.Parse(input, formatProvider));
 }
Beispiel #2
0
 public static TimeSpan Parse(string s)
 {
     if (s == null)
     {
         ThrowHelper.ThrowArgumentNullException(ExceptionArgument.input);
     }
     /* Constructs a TimeSpan from a string.  Leading and trailing white space characters are allowed. */
     return(TimeSpanParse.Parse(s, null));
 }
Beispiel #3
0
 public static TimeSpan Parse(ReadOnlySpan <char> input, IFormatProvider?formatProvider = null)
 {
     return(TimeSpanParse.Parse(input, formatProvider));
 }
Beispiel #4
0
 public static TimeSpan Parse(String input, IFormatProvider formatProvider)
 {
     return(TimeSpanParse.Parse(input, formatProvider));
 }
Beispiel #5
0
 // See System.Globalization.TimeSpanParse and System.Globalization.TimeSpanFormat
 #region ParseAndFormat
 public static TimeSpan Parse(String s)
 {
     /* Constructs a TimeSpan from a string.  Leading and trailing white space characters are allowed. */
     return(TimeSpanParse.Parse(s, null));
 }
 public static TimeSpan Parse(string s)
 {
     return(TimeSpanParse.Parse(s, null));
 }
Beispiel #7
0
 public static TimeSpan Parse(string s)
 {
     return(TimeSpanParse.Parse(s, (IFormatProvider)null));
 }