internal static DateTime ReadProperty(DateTime param, PsMaxLengths cont)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            switch (cont)
            {
            case (PsMaxLengths)0:
                param = InterruptProperty(param);
                break;

            case (PsMaxLengths)1:
                param = CalcProperty(param);
                break;

            case (PsMaxLengths)2:
                param = new DateTime(param.Ticks, DateTimeKind.Unspecified);
                break;

            default:
                throw new ArgumentException("Invalid date time handling value.");

            case (PsMaxLengths)3:
                break;
            }
            return(param);
        }
        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);
        }
 internal static bool RemoveProperty(string asset, PsMaxLengths connection, [_0008._0012(2)] string _0004, CultureInfo res2, out DateTime res3)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (asset.Length > 0)
     {
         if (asset[0] == '/')
         {
             if (asset.Length >= 9 && asset.StartsWith("/Date(", StringComparison.Ordinal) && asset.EndsWith(")/", StringComparison.Ordinal) && GetProperty(new InvocationTest(asset.ToCharArray(), 0, asset.Length), connection, out res3))
             {
                 return(true);
             }
         }
         else if (asset.Length >= 19 && asset.Length <= 40 && char.IsDigit(asset[0]) && asset[10] == 'T' && DateTime.TryParseExact(asset, "yyyy-MM-ddTHH:mm:ss.FFFFFFFK", CultureInfo.InvariantCulture, DateTimeStyles.RoundtripKind, out res3))
         {
             res3 = ReadProperty(res3, connection);
             return(true);
         }
         if (!SetterTest.StartReader(_0004) && StartProperty(asset, connection, _0004, res2, out res3))
         {
             return(true);
         }
     }
     res3 = default(DateTime);
     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);
        }
Exemplo n.º 6
0
 public void _0001(PsMaxLengths info)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (info < (PsMaxLengths)0 || info > (PsMaxLengths)3)
     {
         throw new ArgumentOutOfRangeException("value");
     }
     _InvocationError = info;
 }
 private static bool StartProperty(string def, PsMaxLengths pred, string rule, CultureInfo v2, out DateTime vis3)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (DateTime.TryParseExact(def, rule, v2, DateTimeStyles.RoundtripKind, out DateTime result))
     {
         result = (vis3 = ReadProperty(result, pred));
         return(true);
     }
     vis3 = default(DateTime);
     return(false);
 }
Exemplo n.º 8
0
 protected TagTestItem()
 {
     //Discarded unreachable code: IL_0002, IL_0006
     //IL_0003: Incompatible stack heights: 0 vs 1
     //IL_0007: Incompatible stack heights: 0 vs 1
     SingletonReader.PushGlobal();
     base._002Ector();
     resolverError    = (MethodAttributes)0;
     _InvocationError = (PsMaxLengths)3;
     _IdentifierError = (StubListAnnotation)1;
     m_GetterError    = (SudsUse)0;
     _0001(isparam: true);
 }