Пример #1
0
        // Token: 0x06001480 RID: 5248 RVA: 0x0006CAF8 File Offset: 0x0006ACF8
        public override IEnumerable <JToken> ExecuteFilter(JToken root, IEnumerable <JToken> current, bool errorWhenNoMatch)
        {
            foreach (JToken c in current)
            {
                JToken value = c;
                for (;;)
                {
                    JContainer container = value as JContainer;
                    value = PathFilter.GetNextScanValue(c, container, value);
                    if (value == null)
                    {
                        break;
                    }
                    JProperty property = value as JProperty;
                    if (property != null)
                    {
                        foreach (string b in this._names)
                        {
                            if (property.Name == b)
                            {
                                yield return(property.Value);
                            }
                        }
                        List <string> .Enumerator enumerator2 = default(List <string> .Enumerator);
                    }
                    property = null;
                }
                value = null;
                c     = null;
            }
            IEnumerator <JToken> enumerator = null;

            yield break;
            yield break;
        }
Пример #2
0
        public override IEnumerable <JToken> ExecuteFilter(JToken root, IEnumerable <JToken> current, bool errorWhenNoMatch)
        {
            foreach (JToken c in current)
            {
                if (this.Name == null)
                {
                    yield return(c);
                }
                JToken value = c;
                for (;;)
                {
                    JContainer container = value as JContainer;
                    value = PathFilter.GetNextScanValue(c, container, value);
                    if (value == null)
                    {
                        break;
                    }
                    JProperty jproperty = value as JProperty;
                    if (jproperty != null)
                    {
                        if (jproperty.Name == this.Name)
                        {
                            yield return(jproperty.Value);
                        }
                    }
                    else if (this.Name == null)
                    {
                        yield return(value);
                    }
                }
                value = null;
                c     = null;
            }
            IEnumerator <JToken> enumerator = null;

            yield break;
            yield break;
        }