isConstant() public method

tells if arg we are proxying for is dynamic or constant. *
public isConstant ( ) : bool
return bool
Esempio n. 1
0
	/// <summary>  return the inner / user context
	/// </summary>


	/// <summary>  Used to put VMProxyArgs into this context.  It separates
	/// the VMProxyArgs into constant and non-constant types
	/// pulling out the value of the constant types so they can
	/// be modified w/o damaging the VMProxyArg, and leaving the
	/// dynamic ones, as they modify context rather than their own
	/// state
	/// </summary>
	/// <param name="vmpa">VMProxyArg to add
	///
	/// </param>
	public virtual void  AddVMProxyArg(VMProxyArg vmpa) {
	    /*
	    *  ask if it's a constant : if so, get the value and put into the
	    *  local context, otherwise, put the vmpa in our vmproxyhash
	    */

	    System.String key = vmpa.ContextReference;

	    if (vmpa.isConstant()) {
		localcontext[key] = vmpa.getObject(wrappedContext);
	    } else {
		vmproxyhash[key] = vmpa;
	    }
	}