Пример #1
0
 // Token: 0x06000CB5 RID: 3253 RVA: 0x00045944 File Offset: 0x00043B44
 public virtual IEnumerable <Class_361> dmethod_2266(IEnumerable <Class_361> arg_0, bool bool_0)
 {
     foreach (Class_361 class_ in arg_0)
     {
         Class_423 class_2 = class_ as Class_423;
         if (class_2 != null)
         {
             foreach (string text in this.prop_0)
             {
                 Class_361 class_3 = class_2.kmethod_3307(text);
                 if (class_3 != null)
                 {
                     yield return(class_3);
                 }
                 if (bool_0)
                 {
                     throw new Class_318("Property '{0}' does not exist on JObject.".FormatWith(CultureInfo.InvariantCulture, text));
                 }
             }
         }
         else if (bool_0)
         {
             string               format           = "Properties {0} not valid on {1}.";
             IFormatProvider      invariantCulture = CultureInfo.InvariantCulture;
             string               separator        = ", ";
             IEnumerable <string> source           = this.prop_0;
             if (Class_334.field_1 == null)
             {
                 Class_334.field_1 = new Func <string, string>(Class_334.kmethod_2267);
             }
             throw new Class_318(format.FormatWith(invariantCulture, string.Join(separator, source.Select(Class_334.field_1).ToArray <string>()), class_.GetType().Name));
         }
     }
     yield break;
 }
Пример #2
0
 // Token: 0x06000CA7 RID: 3239 RVA: 0x000455A8 File Offset: 0x000437A8
 public virtual IEnumerable <Class_361> gmethod_2263(IEnumerable <Class_361> arg_0, bool bool_0)
 {
     foreach (Class_361 class_ in arg_0)
     {
         Class_423 class_2 = class_ as Class_423;
         if (class_2 != null)
         {
             if (this.prop_0 != null)
             {
                 Class_361 class_3 = class_2.kmethod_3307(this.prop_0);
                 if (class_3 != null)
                 {
                     yield return(class_3);
                 }
                 else if (bool_0)
                 {
                     throw new Class_318("Property '{0}' does not exist on JObject.".FormatWith(CultureInfo.InvariantCulture, this.prop_0));
                 }
             }
             else
             {
                 using (IEnumerator <KeyValuePair <string, Class_361> > enumerator2 = class_2.smethod_3330())
                 {
                     while (enumerator2.MoveNext())
                     {
                         KeyValuePair <string, Class_361> keyValuePair  = enumerator2.Current;
                         KeyValuePair <string, Class_361> keyValuePair2 = keyValuePair;
                         yield return(keyValuePair2.Value);
                     }
                 }
             }
         }
         else if (bool_0)
         {
             throw new Class_318("Property '{0}' not valid on {1}.".FormatWith(CultureInfo.InvariantCulture, this.prop_0 ?? "*", class_.GetType().Name));
         }
     }
     yield break;
 }