public TimeSpanToken(int leadingZeroes, int number)
 {
     this.ttt = TimeSpanParse.TTT.Num;
     this.num = number;
     this.zeroes = leadingZeroes;
     this.sep = null;
 }
            internal bool ProcessToken(ref TimeSpanParse.TimeSpanToken tok, ref TimeSpanParse.TimeSpanResult result)
            {
                if (tok.ttt == TimeSpanParse.TTT.NumOverflow)
                {
                    result.SetFailure(TimeSpanParse.ParseFailureKind.Overflow, "Overflow_TimeSpanElementTooLarge", null);
                    return false;
                }
                if ((tok.ttt != TimeSpanParse.TTT.Sep) && (tok.ttt != TimeSpanParse.TTT.Num))
                {
                    result.SetFailure(TimeSpanParse.ParseFailureKind.Format, "Format_BadTimeSpan", null);
                    return false;
                }
                switch (tok.ttt)
                {
                    case TimeSpanParse.TTT.Num:
                        if ((this.tokenCount != 0) || this.AddSep(string.Empty, ref result))
                        {
                            if (!this.AddNum(tok, ref result))
                            {
                                return false;
                            }
                            break;
                        }
                        return false;

                    case TimeSpanParse.TTT.Sep:
                        if (this.AddSep(tok.sep, ref result))
                        {
                            break;
                        }
                        return false;
                }
                this.lastSeenTTT = tok.ttt;
                return true;
            }
 public TimeSpanToken(int number)
 {
     this.ttt = TimeSpanParse.TTT.Num;
     this.num = number;
     this.zeroes = 0;
     this.sep = null;
 }
 internal void Init(DateTimeFormatInfo dtfi)
 {
     this.lastSeenTTT = TimeSpanParse.TTT.None;
     this.tokenCount = 0;
     this.SepCount = 0;
     this.NumCount = 0;
     this.literals = new string[6];
     this.numbers = new TimeSpanParse.TimeSpanToken[5];
     this.m_fullPosPattern = dtfi.FullTimeSpanPositivePattern;
     this.m_fullNegPattern = dtfi.FullTimeSpanNegativePattern;
     this.m_posLocInit = false;
     this.m_negLocInit = false;
 }