// Token: 0x06000F7E RID: 3966 RVA: 0x0004FC04 File Offset: 0x0004DE04 public virtual void dmethod_2806(Class_296 arg_0, object obje_0, Class_418 arg_1) { string str_; if (obje_0 is DateTime) { DateTime dateTime = (DateTime)obje_0; if ((this.field_1 & DateTimeStyles.AdjustToUniversal) == DateTimeStyles.AdjustToUniversal || (this.field_1 & DateTimeStyles.AssumeUniversal) == DateTimeStyles.AssumeUniversal) { dateTime = dateTime.ToUniversalTime(); } str_ = dateTime.ToString(this.field_2 ?? "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK", this.prop_2); } else { if (!(obje_0 is DateTimeOffset)) { throw new Class_417("Unexpected value when converting date. Expected DateTime or DateTimeOffset, got {0}.".FormatWith(CultureInfo.InvariantCulture, Class_514.GetObjectType(obje_0))); } DateTimeOffset dateTimeOffset = (DateTimeOffset)obje_0; if ((this.field_1 & DateTimeStyles.AdjustToUniversal) == DateTimeStyles.AdjustToUniversal || (this.field_1 & DateTimeStyles.AssumeUniversal) == DateTimeStyles.AssumeUniversal) { dateTimeOffset = dateTimeOffset.ToUniversalTime(); } str_ = dateTimeOffset.ToString(this.field_2 ?? "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK", this.prop_2); } arg_0.kmethod_2037(str_); }