示例#1
0
 public override ParserFilterResolver this[object init]
 {
     [MethodImpl(MethodImplOptions.NoInlining)]
     get
     {
         //Discarded unreachable code: IL_0002
         //IL_0003: Incompatible stack heights: 0 vs 1
         ContextClientBridge.RunClient(init, "key");
         string text = init as string;
         if (text == null)
         {
             throw new ArgumentException("Accessed JObject values with invalid key value: {0}. Object property name expected.".ListReader(CultureInfo.InvariantCulture, CustomerListAnnotation.InvokeIssuer(init)));
         }
         return(this[text]);
     }
     [MethodImpl(MethodImplOptions.NoInlining)]
     set
     {
         //Discarded unreachable code: IL_0002
         //IL_0003: Incompatible stack heights: 0 vs 1
         ContextClientBridge.RunClient(init, "key");
         string text = init as string;
         if (text == null)
         {
             throw new ArgumentException("Set JObject values with invalid key value: {0}. Object property name expected.".ListReader(CultureInfo.InvariantCulture, CustomerListAnnotation.InvokeIssuer(init)));
         }
         this[text] = value;
     }
 }
示例#2
0
 public override ParserFilterResolver this[object item]
 {
     [MethodImpl(MethodImplOptions.NoInlining)]
     get
     {
         //Discarded unreachable code: IL_0002
         //IL_0003: Incompatible stack heights: 0 vs 1
         ContextClientBridge.RunClient(item, "key");
         if (!(item is int))
         {
             throw new ArgumentException("Accessed JArray values with invalid key value: {0}. Int32 array index expected.".ListReader(CultureInfo.InvariantCulture, CustomerListAnnotation.InvokeIssuer(item)));
         }
         return(((ConfigurationIssuer)this)._0001((int)item));
     }
     [MethodImpl(MethodImplOptions.NoInlining)]
     set
     {
         //Discarded unreachable code: IL_0002
         //IL_0003: Incompatible stack heights: 0 vs 1
         ContextClientBridge.RunClient(def, "key");
         if (!(def is int))
         {
             throw new ArgumentException("Set JArray values with invalid key value: {0}. Int32 array index expected.".ListReader(CultureInfo.InvariantCulture, CustomerListAnnotation.InvokeIssuer(def)));
         }
         _0001((int)def, value);
     }
 }
示例#3
0
 public override ParserFilterResolver this[object def]
 {
     [MethodImpl(MethodImplOptions.NoInlining)]
     get
     {
         //Discarded unreachable code: IL_0002
         //IL_0003: Incompatible stack heights: 0 vs 1
         ContextClientBridge.RunClient(def, "key");
         if (def is int)
         {
             int lengthinit = (int)def;
             return(((ConfigurationIssuer)this)._0001(lengthinit));
         }
         throw new ArgumentException("Accessed JConstructor values with invalid key value: {0}. Argument position index expected.".ListReader(CultureInfo.InvariantCulture, CustomerListAnnotation.InvokeIssuer(def)));
     }
     [MethodImpl(MethodImplOptions.NoInlining)]
     set
     {
         //Discarded unreachable code: IL_0002
         //IL_0003: Incompatible stack heights: 0 vs 1
         ContextClientBridge.RunClient(v, "key");
         if (v is int)
         {
             int lastY = (int)v;
             _0001(lastY, value);
             return;
         }
         throw new ArgumentException("Set JConstructor values with invalid key value: {0}. Argument position index expected.".ListReader(CultureInfo.InvariantCulture, CustomerListAnnotation.InvokeIssuer(v)));
     }
 }