Example #1
0
 // Token: 0x060015CB RID: 5579 RVA: 0x00067D14 File Offset: 0x00065F14
 public override DynamicMetaObject BindCreateInstance(CreateInstanceBinder binder, DynamicMetaObject[] args)
 {
     if (!this.IsOverridden("TryCreateInstance"))
     {
         return(base.BindCreateInstance(binder, args));
     }
     return(this.CallMethodWithResult("TryCreateInstance", binder, Class_475 <T> .GetArgArray(args), (DynamicMetaObject e) => binder.FallbackCreateInstance(this, args, e), null));
 }
Example #2
0
 // Token: 0x060015D1 RID: 5585 RVA: 0x00067FE0 File Offset: 0x000661E0
 public override DynamicMetaObject BindDeleteIndex(DeleteIndexBinder binder, DynamicMetaObject[] indexes)
 {
     if (!this.IsOverridden("TryDeleteIndex"))
     {
         return(base.BindDeleteIndex(binder, indexes));
     }
     return(this.CallMethodNoResult("TryDeleteIndex", binder, Class_475 <T> .GetArgArray(indexes), (DynamicMetaObject e) => binder.FallbackDeleteIndex(this, indexes, e)));
 }
Example #3
0
 // Token: 0x060015D0 RID: 5584 RVA: 0x00067F58 File Offset: 0x00066158
 public override DynamicMetaObject BindSetIndex(SetIndexBinder binder, DynamicMetaObject[] indexes, DynamicMetaObject value)
 {
     if (!this.IsOverridden("TrySetIndex"))
     {
         return(base.BindSetIndex(binder, indexes, value));
     }
     return(this.CallMethodReturnLast("TrySetIndex", binder, Class_475 <T> .GetArgArray(indexes, value), (DynamicMetaObject e) => binder.FallbackSetIndex(this, indexes, value, e)));
 }
Example #4
0
        // Token: 0x060015CA RID: 5578 RVA: 0x00067C5C File Offset: 0x00065E5C
        public override DynamicMetaObject BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args)
        {
            if (!this.IsOverridden("TryInvokeMember"))
            {
                return(base.BindInvokeMember(binder, args));
            }
            Class_475 <T> .Fallback fallback          = (DynamicMetaObject e) => binder.FallbackInvokeMember(this, args, e);
            DynamicMetaObject       dynamicMetaObject = this.BuildCallMethodWithResult("TryInvokeMember", binder, Class_475 <T> .GetArgArray(args), this.BuildCallMethodWithResult("TryGetMember", new Class_475 <T> .GetBinderAdapter(binder), Class_475 <T> .NoArgs, fallback(null), (DynamicMetaObject e) => binder.FallbackInvoke(e, args, null)), null);

            if (!this._dontFallbackFirst)
            {
                return(fallback(dynamicMetaObject));
            }
            return(dynamicMetaObject);
        }