protected CallSiteBinder GetLightBinder() { ILightExceptionBinder binder = _binder as ILightExceptionBinder; if (binder != null) { return(binder.GetLightExceptionBinder()); } return(_binder); }
Expression ILightExceptionAwareExpression.ReduceForLightExceptions() { ILightExceptionBinder binder = Binder as ILightExceptionBinder; if (binder != null) { var lightBinder = binder.GetLightExceptionBinder() as DynamicMetaObjectBinder; if (lightBinder != binder) { return(DynamicExpression.Dynamic( lightBinder, Type, Args)); } } return(this); }