public string GetInArgName(int index) { if (_inArgInfo == null) { _inArgInfo = new ArgInfo(_methodBase, ArgInfoType.In); } return(_inArgInfo.GetInOutArgName(index)); }
public object GetInArg(int argNum) { if (_inArgInfo == null) { _inArgInfo = new ArgInfo(_methodBase, ArgInfoType.In); } return(_args[_inArgInfo.GetInOutArgIndex(argNum)]); }
public object GetOutArg(int argNum) { if (_args == null) { return(null); } if (_inArgInfo == null) { _inArgInfo = new ArgInfo(MethodBase, ArgInfoType.Out); } return(_args[_inArgInfo.GetInOutArgIndex(argNum)]); }
/// <summary>Returns the name of the specified argument marked as a ref parameter or an out parameter.</summary> /// <returns>The argument name, or null if the current method is not implemented.</returns> /// <param name="index">The index of the requested argument.</param> /// <PermissionSet> /// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" /> /// </PermissionSet> public string GetOutArgName(int index) { if (this._methodBase == null) { return("__method_" + index); } if (this._inArgInfo == null) { this._inArgInfo = new ArgInfo(this.MethodBase, ArgInfoType.Out); } return(this._inArgInfo.GetInOutArgName(index)); }
public MethodReturnMessageWrapper (IMethodReturnMessage msg) : base (msg) { if (msg.Exception != null) { _exception = msg.Exception; _args = new object[0]; } else { _args = msg.Args; _return = msg.ReturnValue; if (msg.MethodBase != null) _outArgInfo = new ArgInfo (msg.MethodBase, ArgInfoType.Out); } }
public string GetOutArgName(int index) { if (null == _methodBase) { return("__method_" + index); } if (_inArgInfo == null) { _inArgInfo = new ArgInfo(MethodBase, ArgInfoType.Out); } return(_inArgInfo.GetInOutArgName(index)); }
/// <summary>Wraps an <see cref="T:System.Runtime.Remoting.Messaging.IMethodReturnMessage" /> to create a <see cref="T:System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper" />. </summary> /// <param name="msg">A message that acts as an outgoing method call on a remote object.</param> public MethodReturnMessageWrapper(IMethodReturnMessage msg) : base(msg) { if (msg.Exception != null) { this._exception = msg.Exception; this._args = new object[0]; } else { this._args = msg.Args; this._return = msg.ReturnValue; if (msg.MethodBase != null) { this._outArgInfo = new ArgInfo(msg.MethodBase, ArgInfoType.Out); } } }
public MethodCallMessageWrapper(IMethodCallMessage msg) : base(msg) { _args = ((IMethodCallMessage)WrappedMessage).Args; _inArgInfo = new ArgInfo(msg.MethodBase, ArgInfoType.In); }
public string GetOutArgName (int index) { if (_inArgInfo == null) _inArgInfo = new ArgInfo (MethodBase, ArgInfoType.Out); return _inArgInfo.GetInOutArgName (index); }
public object GetOutArg (int argNum) { if (_inArgInfo == null) _inArgInfo = new ArgInfo (MethodBase, ArgInfoType.Out); return _args[_inArgInfo.GetInOutArgIndex (argNum)]; }
public MethodCallMessageWrapper (IMethodCallMessage msg) : base (msg) { _args = ((IMethodCallMessage)WrappedMessage).Args; _inArgInfo = new ArgInfo (msg.MethodBase, ArgInfoType.In); }