RcwFromComObject() 정적인 개인적인 메소드

static private RcwFromComObject ( Expression comObject ) : MemberExpression
comObject System.Linq.Expressions.Expression
리턴 System.Linq.Expressions.MemberExpression
예제 #1
0
 protected virtual ComUnwrappedMetaObject UnwrapSelf() {
     return new ComUnwrappedMetaObject(
         ComObject.RcwFromComObject(Expression),
         Restrictions.Merge(ComBinderHelpers.GetTypeRestrictionForDynamicMetaObject(this)),
         ((ComObject)Value).RuntimeCallableWrapper
     );
 }
예제 #2
0
 protected override ComUnwrappedMetaObject UnwrapSelf()
 {
     return(new ComUnwrappedMetaObject(
                ComObject.RcwFromComObject(Expression),
                IDispatchRestriction(),
                _self.RuntimeCallableWrapper
                ));
 }
예제 #3
0
        private DynamicMetaObject BindEvent(ComEventDesc @event)
        {
            // BoundDispEvent CreateComEvent(object rcw, Guid sourceIid, int dispid)
            Expression result =
                Expression.Call(
                    typeof(ComRuntimeHelpers).GetMethod("CreateComEvent"),
                    ComObject.RcwFromComObject(Expression),
                    Expression.Constant(@event.sourceIID),
                    Expression.Constant(@event.dispid)
                    );

            return(new DynamicMetaObject(
                       result,
                       IDispatchRestriction()
                       ));
        }