コード例 #1
0
 /// <summary>
 /// Initialize a new instance of <see cref="AlgorithmInvokeMethodExpression"/>.
 /// </summary>
 /// <param name="targetObject">A reference to a variable or to a class</param>
 /// <param name="methodName">The method name to call</param>
 /// <param name="arguments">The arguments to pass during the call</param>
 public AlgorithmInvokeMethodExpression(AlgorithmReferenceExpression targetObject, string methodName, params AlgorithmExpression[] arguments)
 {
     TargetObject = targetObject;
     MethodName   = new AlgorithmIdentifier(methodName);
     Arguments    = new AlgorithmExpressionCollection();
     Arguments.AddRange(arguments);
 }
コード例 #2
0
 /// <summary>
 /// Initialize a new instance of <see cref="AlgorithmInstanciateExpression"/>
 /// </summary>
 /// <param name="createType">Reference to the class to instanciate</param>
 /// <param name="arguments">Arguments to pass in the class's constructor</param>
 public AlgorithmInstanciateExpression(AlgorithmClassReferenceExpression createType, params AlgorithmExpression[] arguments)
 {
     CreateType = createType;
     Arguments  = new AlgorithmExpressionCollection();
     Arguments.AddRange(arguments);
 }