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

◆ GetNextAdjustmentRuleValue()

AdjustmentRule System.TimeZoneInfo.StringSerializer.GetNextAdjustmentRuleValue ( )
inlineprivate

Definition at line 604 of file TimeZoneInfo.cs.

605 {
606 if (_state == State.EndOfLine)
607 {
608 return null;
609 }
611 {
612 throw new SerializationException(SR.Serialization_InvalidData);
613 }
615 {
616 return null;
617 }
619 {
620 throw new SerializationException(SR.Serialization_InvalidData);
621 }
629 int num = 0;
630 if (_state == State.EndOfLine || _currentTokenStartIndex >= _serializedText.Length)
631 {
632 throw new SerializationException(SR.Serialization_InvalidData);
633 }
635 {
637 }
639 {
640 num = GetNextInt32Value();
641 }
642 if (_state == State.EndOfLine || _currentTokenStartIndex >= _serializedText.Length)
643 {
644 throw new SerializationException(SR.Serialization_InvalidData);
645 }
647 {
649 }
650 else
651 {
653 }
654 AdjustmentRule result;
655 try
656 {
658 }
659 catch (ArgumentException innerException)
660 {
661 throw new SerializationException(SR.Serialization_InvalidData, innerException);
662 }
664 {
665 _state = State.EndOfLine;
666 }
667 else
668 {
669 _state = State.StartOfToken;
670 }
671 return result;
672 }
DateTime GetNextDateTimeValue(string format)

References System.TimeZoneInfo.StringSerializer._currentTokenStartIndex, System.TimeZoneInfo.StringSerializer._serializedText, System.TimeZoneInfo.StringSerializer._state, System.TimeZoneInfo.AdjustmentRule.CreateAdjustmentRule(), System.TimeZoneInfo.StringSerializer.GetNextDateTimeValue(), System.TimeZoneInfo.StringSerializer.GetNextInt32Value(), System.TimeZoneInfo.StringSerializer.GetNextTimeSpanValue(), System.TimeZoneInfo.StringSerializer.GetNextTransitionTimeValue(), System.SR.Serialization_InvalidData, System.TimeZoneInfo.StringSerializer.SkipVersionNextDataFields(), and System.TimeSpan.Zero.

Referenced by System.TimeZoneInfo.StringSerializer.GetNextAdjustmentRuleArrayValue().