terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ operator DateTimeOffset()

static Newtonsoft.Json.Linq.JToken.operator DateTimeOffset ( JToken value)
inlineexplicitstaticinherited

Definition at line 507 of file JToken.cs.

508 {
509 if (!true)
510 {
511 }
512 JValue jvalue = JToken.EnsureValue(value);
513 if (jvalue != null)
514 {
515 if (!true)
516 {
517 }
518 object value2 = jvalue._value;
519 if (value2 != null)
520 {
521 }
524 if (value2 != null || value2 != null)
525 {
526 }
527 }
529 string text2;
530 string text = "Can not convert {0} to DateTimeOffset.".FormatWith(invariantCulture2, text2);
531 throw new InvalidCastException();
532 }
class f__AnonymousType0<< Count > j__TPar
static DateTime ToDateTime(object value, IFormatProvider provider)
Definition Convert.cs:2456
static CultureInfo InvariantCulture

References Newtonsoft.Json.Linq.JValue._value, Newtonsoft.Json.Linq.JToken.EnsureValue(), System.Globalization.CultureInfo.InvariantCulture, j__TPar, System.text, System.Convert.ToDateTime(), and System.value.