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

◆ CheckNewValue()

static bool System.DateTimeParse.CheckNewValue ( ref int currentValue,
int newValue,
char patternChar,
ref DateTimeResult result )
inlinestaticprivate

Definition at line 3059 of file DateTimeParse.cs.

3060 {
3061 if (currentValue == -1)
3062 {
3063 currentValue = newValue;
3064 return true;
3065 }
3066 if (newValue != currentValue)
3067 {
3068 result.SetFailure(ParseFailureKind.FormatWithParameter, "Format_RepeatDateTimePattern", patternChar);
3069 return false;
3070 }
3071 return true;
3072 }

Referenced by System.DateTimeParse.ParseByFormat().