Beispiel #1
0
 public override void _0005(string param)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     m_ComposerIssuer._0005(param);
     errorIssuer._0005(param);
     base._0005(param);
 }
        public override void _0001(RecordClassDispatcher task, BroadcasterError[] counter)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            if (counter != null && counter.Length != 0 && m_InvocationIssuer != null)
            {
                BroadcasterError broadcasterError = PrototypeError.LogoutComposer(counter, m_InvocationIssuer.GetType());
                if (broadcasterError != null && broadcasterError._0001())
                {
                    broadcasterError._0001(task, m_InvocationIssuer, PrototypeError.FillComposer());
                    return;
                }
            }
            switch (_ValIssuer)
            {
            case Newtonsoft.Rules.UnicodeCategory.Comment:
                task._0005(m_InvocationIssuer?.ToString());
                break;

            case Newtonsoft.Rules.UnicodeCategory.Raw:
                task._0006(m_InvocationIssuer?.ToString());
                break;

            case Newtonsoft.Rules.UnicodeCategory.Null:
                task._0008();
                break;

            case Newtonsoft.Rules.UnicodeCategory.Undefined:
                task._000E();
                break;

            case Newtonsoft.Rules.UnicodeCategory.Integer:
            {
                object invocationIssuer = m_InvocationIssuer;
                if (invocationIssuer is int)
                {
                    int first_Low = (int)invocationIssuer;
                    task._0001(first_Low);
                    break;
                }
                invocationIssuer = m_InvocationIssuer;
                if (invocationIssuer is long)
                {
                    long asset2 = (long)invocationIssuer;
                    task._0001(asset2);
                    break;
                }
                invocationIssuer = m_InvocationIssuer;
                if (invocationIssuer is ulong)
                {
                    ulong specID = (ulong)invocationIssuer;
                    task._0001(specID);
                    break;
                }
                invocationIssuer = m_InvocationIssuer;
                if (invocationIssuer is BigInteger)
                {
                    BigInteger bigInteger = (BigInteger)invocationIssuer;
                    task._0001(bigInteger);
                }
                else
                {
                    task._0001(Convert.ToInt64(m_InvocationIssuer, CultureInfo.InvariantCulture));
                }
                break;
            }

            case Newtonsoft.Rules.UnicodeCategory.Float:
            {
                object invocationIssuer = m_InvocationIssuer;
                if (invocationIssuer is decimal)
                {
                    decimal asset = (decimal)invocationIssuer;
                    task._0001(asset);
                    break;
                }
                invocationIssuer = m_InvocationIssuer;
                if (invocationIssuer is double)
                {
                    double last = (double)invocationIssuer;
                    task._0001(last);
                    break;
                }
                invocationIssuer = m_InvocationIssuer;
                if (invocationIssuer is float)
                {
                    float init = (float)invocationIssuer;
                    task._0001(init);
                }
                else
                {
                    task._0001(Convert.ToDouble(m_InvocationIssuer, CultureInfo.InvariantCulture));
                }
                break;
            }

            case Newtonsoft.Rules.UnicodeCategory.String:
                task._0004(m_InvocationIssuer?.ToString());
                break;

            case Newtonsoft.Rules.UnicodeCategory.Boolean:
                task._0001(Convert.ToBoolean(m_InvocationIssuer, CultureInfo.InvariantCulture));
                break;

            case Newtonsoft.Rules.UnicodeCategory.Date:
            {
                object invocationIssuer = m_InvocationIssuer;
                if (invocationIssuer is DateTimeOffset)
                {
                    DateTimeOffset last2 = (DateTimeOffset)invocationIssuer;
                    task._0001(last2);
                }
                else
                {
                    task._0001(Convert.ToDateTime(m_InvocationIssuer, CultureInfo.InvariantCulture));
                }
                break;
            }

            case Newtonsoft.Rules.UnicodeCategory.Bytes:
                task._0001((byte[])m_InvocationIssuer);
                break;

            case Newtonsoft.Rules.UnicodeCategory.Guid:
                task._0001((m_InvocationIssuer != null) ? ((Guid?)m_InvocationIssuer) : null);
                break;

            case Newtonsoft.Rules.UnicodeCategory.TimeSpan:
                task._0001((m_InvocationIssuer != null) ? ((TimeSpan?)m_InvocationIssuer) : null);
                break;

            case Newtonsoft.Rules.UnicodeCategory.Uri:
                task._0001((Uri)m_InvocationIssuer);
                break;

            default:
                throw CustomerListAnnotation.ConcatIssuer("Type", _ValIssuer, "Unexpected token type.");
            }
        }
Beispiel #3
0
        private void InitRequest(RecordClassDispatcher first, CreatorIssuer second, XmlNamespaceManager template, bool isresult2)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            switch (second._0001())
            {
            case XmlNodeType.Document:
            case XmlNodeType.DocumentFragment:
                ExcludeRequest(first, second, template, isresult2);
                break;

            case XmlNodeType.Element:
                if (CancelRequest(second) && DefineRequest(second) && second._0001().Count > 0)
                {
                    ExcludeRequest(first, second, template, hasattr2: false);
                    break;
                }
                template.PushScope();
                foreach (CreatorIssuer item in second._0002())
                {
                    if (item._0003() == "http://www.w3.org/2000/xmlns/")
                    {
                        string prefix = (item._0001() != "xmlns") ? XmlConvert.DecodeName(item._0001()) : string.Empty;
                        string text   = item._0002();
                        if (text == null)
                        {
                            throw new StrategyError("Namespace attribute must have a value.");
                        }
                        template.AddNamespace(prefix, text);
                    }
                }
                if (isresult2)
                {
                    first._0002(QueryRequest(second, template));
                }
                if (!ResolveIterator(second._0002()) && second._0001().Count == 1 && second._0001()[0]._0001() == XmlNodeType.Text)
                {
                    first._0004(second._0001()[0]._0002());
                }
                else if (second._0001().Count == 0 && second._0002().Count == 0)
                {
                    if (((InfoRequestStrategy)second)._0001())
                    {
                        first._0008();
                    }
                    else
                    {
                        first._0004(string.Empty);
                    }
                }
                else
                {
                    first._0002();
                    for (int i = 0; i < second._0002().Count; i++)
                    {
                        InitRequest(first, second._0002()[i], template, isresult2: true);
                    }
                    ExcludeRequest(first, second, template, hasattr2: true);
                    first._0011();
                }
                template.PopScope();
                break;

            case XmlNodeType.Comment:
                if (isresult2)
                {
                    first._0005(second._0002());
                }
                break;

            case XmlNodeType.Attribute:
            case XmlNodeType.Text:
            case XmlNodeType.CDATA:
            case XmlNodeType.ProcessingInstruction:
            case XmlNodeType.Whitespace:
            case XmlNodeType.SignificantWhitespace:
                if ((!(second._0003() == "http://www.w3.org/2000/xmlns/") || !(second._0002() == "http://james.newtonking.com/projects/json")) && (!(second._0003() == "http://james.newtonking.com/projects/json") || !(second._0001() == "Array")))
                {
                    if (isresult2)
                    {
                        first._0002(QueryRequest(second, template));
                    }
                    first._0004(second._0002());
                }
                break;

            case XmlNodeType.XmlDeclaration:
            {
                DicEventConsumer dicEventConsumer = (DicEventConsumer)second;
                first._0002(QueryRequest(second, template));
                first._0002();
                if (!SetterTest.StartReader(dicEventConsumer._0004()))
                {
                    first._0002("@version");
                    first._0004(dicEventConsumer._0004());
                }
                if (!SetterTest.StartReader(dicEventConsumer._0005()))
                {
                    first._0002("@encoding");
                    first._0004(dicEventConsumer._0005());
                }
                if (!SetterTest.StartReader(dicEventConsumer._0006()))
                {
                    first._0002("@standalone");
                    first._0004(dicEventConsumer._0006());
                }
                first._0011();
                break;
            }

            case XmlNodeType.DocumentType:
            {
                IndexerIssuer indexerIssuer = (IndexerIssuer)second;
                first._0002(QueryRequest(second, template));
                first._0002();
                if (!SetterTest.StartReader(indexerIssuer._0004()))
                {
                    first._0002("@name");
                    first._0004(indexerIssuer._0004());
                }
                if (!SetterTest.StartReader(indexerIssuer._0006()))
                {
                    first._0002("@public");
                    first._0004(indexerIssuer._0006());
                }
                if (!SetterTest.StartReader(indexerIssuer._0005()))
                {
                    first._0002("@system");
                    first._0004(indexerIssuer._0005());
                }
                if (!SetterTest.StartReader(indexerIssuer._0007()))
                {
                    first._0002("@internalSubset");
                    first._0004(indexerIssuer._0007());
                }
                first._0011();
                break;
            }

            default:
                throw new StrategyError("Unexpected XmlNodeType when serializing nodes: " + second._0001());
            }
        }