Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <see cref="global::System.TimeSpan.ParseExact(string, string, global::System.IFormatProvider, global::System.Globalization.TimeSpanStyles)" />
 public static Time ParseExact(global::System.Collections.Generic.IEnumerable <char> str,
                               global::System.Collections.Generic.IEnumerable <char> format,
                               global::System.IFormatProvider formatProvider,
                               global::System.Globalization.TimeSpanStyles styles)
 {
     return((Time)global::System.TimeSpan.ParseExact(global::MarcelJoachimKloubert.CLRToolbox.Helpers.StringHelper.AsString(str),
                                                     global::MarcelJoachimKloubert.CLRToolbox.Helpers.StringHelper.AsString(format),
                                                     formatProvider,
                                                     styles));
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <see cref="global::System.TimeSpan.TryParseExact(string, string, global::System.IFormatProvider, global::System.Globalization.TimeSpanStyles, out global::System.TimeSpan)" />
 public static bool TryParseExact(global::System.Collections.Generic.IEnumerable <char> str,
                                  global::System.Collections.Generic.IEnumerable <char> format,
                                  global::System.IFormatProvider formatProvider,
                                  global::System.Globalization.TimeSpanStyles styles,
                                  out Time result)
 {
     return(TryParseInner(delegate(string input, out global::System.TimeSpan tsResult)
     {
         return global::System.TimeSpan.TryParseExact(input, global::MarcelJoachimKloubert.CLRToolbox.Helpers.StringHelper.AsString(format), formatProvider, styles,
                                                      out tsResult);
     }, str
                          , out result));
 }
Example #3
0
        /// <summary>
        ///
        /// </summary>
        /// <see cref="global::System.TimeSpan.ParseExact(string, string[], global::System.IFormatProvider, global::System.Globalization.TimeSpanStyles)" />
        public static Time ParseExact(global::System.Collections.Generic.IEnumerable <char> str,
                                      global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.IEnumerable <char> > formats,
                                      global::System.IFormatProvider formatProvider,
                                      global::System.Globalization.TimeSpanStyles styles)
        {
            var strFormats = global::MarcelJoachimKloubert.CLRToolbox.Helpers.CollectionHelper.Select(formats, delegate(global::System.Collections.Generic.IEnumerable <char> fChars)
            {
                return(global::MarcelJoachimKloubert.CLRToolbox.Helpers.StringHelper.AsString(fChars));
            });

            return((Time)global::System.TimeSpan.ParseExact(global::MarcelJoachimKloubert.CLRToolbox.Helpers.StringHelper.AsString(str),
                                                            formats == null ? null : global::MarcelJoachimKloubert.CLRToolbox.Helpers.CollectionHelper.ToArray(strFormats),
                                                            formatProvider,
                                                            styles));
        }