private static bool DeleteProperty(InvocationTest task, int ID_map, out TimeSpan pool) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 bool flag = task[ID_map] == '-'; if (HelperDicCandidate.StopProperty(task._0001(), ID_map + 1, 2, out int result) != (TYMED)1) { pool = default(TimeSpan); return(false); } int result2 = 0; if (task._0002() - ID_map > 5 && HelperDicCandidate.StopProperty(task._0001(), ID_map + 3, 2, out result2) != (TYMED)1) { pool = default(TimeSpan); return(false); } pool = TimeSpan.FromHours(result) + TimeSpan.FromMinutes(result2); if (flag) { pool = pool.Negate(); } return(true); }
private static bool GetProperty(InvocationTest asset, PsMaxLengths visitor, out DateTime role) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (!CalculateProperty(asset, out long second, out TimeSpan _, out DateTimeKind result)) { role = default(DateTime); return(false); } DateTime dateTime = SearchProperty(second); switch (result) { case DateTimeKind.Unspecified: role = DateTime.SpecifyKind(dateTime.ToLocalTime(), DateTimeKind.Unspecified); break; case DateTimeKind.Local: role = dateTime.ToLocalTime(); break; default: role = dateTime; break; } role = ReadProperty(role, visitor); return(true); }
private static bool CalculateProperty(InvocationTest reference, out long second, out TimeSpan state, out DateTimeKind result2) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 result2 = DateTimeKind.Utc; int num = reference.ChangeReader('+', 7, reference._0002() - 8); if (num == -1) { num = reference.ChangeReader('-', 7, reference._0002() - 8); } if (num != -1) { result2 = DateTimeKind.Local; if (!DeleteProperty(reference, num + reference._0001(), out state)) { second = 0L; return(false); } } else { state = TimeSpan.Zero; num = reference._0002() - 2; } return(HelperDicCandidate.CloneProperty(reference._0001(), 6 + reference._0001(), num - 6, out second) == (TYMED)1); }
internal static bool PostProperty(InvocationTest setup, [_0008._0012(2)] string _0003, CultureInfo state, out DateTimeOffset res2) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (setup._0002() > 0) { int num = setup._0001(); if (setup[num] == '/') { if (setup._0002() >= 9 && setup.CalculateReader("/Date(") && setup.GetReader(")/") && ListProperty(setup, out res2)) { return(true); } } else if (setup._0002() >= 19 && setup._0002() <= 40 && char.IsDigit(setup[num]) && setup[num + 10] == 'T' && DestroyProperty(setup, out res2)) { return(true); } if (!SetterTest.StartReader(_0003) && SelectProperty(setup.ToString(), _0003, state, out res2)) { return(true); } } res2 = default(DateTimeOffset); return(false); }
internal static bool RateProperty(InvocationTest task, PsMaxLengths map, [_0008._0012(2)] string _0004, CultureInfo item2, out DateTime attr3) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (task._0002() > 0) { int num = task._0001(); if (task[num] == '/') { if (task._0002() >= 9 && task.CalculateReader("/Date(") && task.GetReader(")/") && GetProperty(task, map, out attr3)) { return(true); } } else if (task._0002() >= 19 && task._0002() <= 40 && char.IsDigit(task[num]) && task[num + 10] == 'T' && ComputeProperty(task, map, out attr3)) { return(true); } if (!SetterTest.StartReader(_0004) && StartProperty(task.ToString(), map, _0004, item2, out attr3)) { return(true); } } attr3 = default(DateTime); return(false); }
internal static bool ComputeProperty(InvocationTest init, PsMaxLengths vis, out DateTime res) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 InfoComposer property = default(InfoComposer); if (!property.ConnectProperty(init._0001(), init._0001(), init._0002())) { res = default(DateTime); return(false); } DateTime dateTime = SetProperty(property); switch (property.m_DatabaseComposer) { case (ExceptionDicCandidate)1: dateTime = new DateTime(dateTime.Ticks, DateTimeKind.Utc); break; case (ExceptionDicCandidate)2: { TimeSpan timeSpan2 = new TimeSpan(property._ExceptionComposer, property.attributeComposer, 0); long num = dateTime.Ticks + timeSpan2.Ticks; if (num <= DateTime.MaxValue.Ticks) { dateTime = new DateTime(num, DateTimeKind.Utc).ToLocalTime(); break; } num += dateTime.AwakeProperty().Ticks; if (num > DateTime.MaxValue.Ticks) { num = DateTime.MaxValue.Ticks; } dateTime = new DateTime(num, DateTimeKind.Local); break; } case (ExceptionDicCandidate)3: { TimeSpan timeSpan = new TimeSpan(property._ExceptionComposer, property.attributeComposer, 0); long num = dateTime.Ticks - timeSpan.Ticks; if (num >= DateTime.MinValue.Ticks) { dateTime = new DateTime(num, DateTimeKind.Utc).ToLocalTime(); break; } num += dateTime.AwakeProperty().Ticks; if (num < DateTime.MinValue.Ticks) { num = DateTime.MinValue.Ticks; } dateTime = new DateTime(num, DateTimeKind.Local); break; } } res = ReadProperty(dateTime, vis); return(true); }
public static int ChangeReader(this InvocationTest init, char connection, int filterPosition, int col2_low) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 int num = Array.IndexOf(init._0001(), connection, init._0001() + filterPosition, col2_low); if (num == -1) { return(-1); } return(num - init._0001()); }
private static bool ListProperty(InvocationTest def, out DateTimeOffset connection) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (!CalculateProperty(def, out long second, out TimeSpan state, out DateTimeKind _)) { connection = default(DateTime); return(false); } connection = new DateTimeOffset(SearchProperty(second).Add(state).Ticks, state); return(true); }
public static bool CalculateReader(this InvocationTest i, string ord) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (ord.Length > i._0002()) { return(false); } char[] array = i._0001(); for (int j = 0; j < ord.Length; j++) { if (ord[j] != array[j + i._0001()]) { return(false); } } return(true); }
internal static bool DestroyProperty(InvocationTest info, out DateTimeOffset attr) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 InfoComposer property = default(InfoComposer); if (!property.ConnectProperty(info._0001(), info._0001(), info._0002())) { attr = default(DateTimeOffset); return(false); } DateTime dateTime = SetProperty(property); TimeSpan offset; switch (property.m_DatabaseComposer) { case (ExceptionDicCandidate)1: offset = new TimeSpan(0L); break; case (ExceptionDicCandidate)2: offset = new TimeSpan(-property._ExceptionComposer, -property.attributeComposer, 0); break; case (ExceptionDicCandidate)3: offset = new TimeSpan(property._ExceptionComposer, property.attributeComposer, 0); break; default: offset = TimeZoneInfo.Local.GetUtcOffset(dateTime); break; } long num = dateTime.Ticks - offset.Ticks; if (num < 0 || num > 3155378975999999999L) { attr = default(DateTimeOffset); return(false); } attr = new DateTimeOffset(dateTime, offset); return(true); }
public static bool GetReader(this InvocationTest first, string caller) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (caller.Length > first._0002()) { return(false); } char[] array = first._0001(); int num = first._0001() + first._0002() - caller.Length; for (int i = 0; i < caller.Length; i++) { if (caller[i] != array[i + num]) { return(false); } } return(true); }