Beispiel #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);
 }
 /// <summary>
 /// Initialize a new instance of <see cref="AlgorithmInvokeCoreMethodExpression"/>
 /// </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="argumentTypes">The array of types that defines the type of each arguments of the method</param>
 /// <param name="arguments">The arguments to pass during the call</param>
 public AlgorithmInvokeCoreMethodExpression(AlgorithmReferenceExpression targetObject, string methodName, Type[] argumentTypes, params AlgorithmExpression[] arguments)
     : base(targetObject, methodName, arguments)
 {
     TargetObject   = targetObject;
     ArgumentsTypes = argumentTypes;
 }
Beispiel #3
0
 /// <summary>
 /// Initialize a new instance of <see cref="AlgorithmArrayIndexerExpression"/>
 /// </summary>
 /// <param name="targetObject">the reference to the array</param>
 /// <param name="indice">the index of the array.</param>
 public AlgorithmArrayIndexerExpression(AlgorithmReferenceExpression targetObject, AlgorithmExpression indice)
 {
     TargetObject = targetObject;
     Indice       = indice;
 }
 /// <summary>
 /// Initialize a new instance of <see cref="AlgorithmPropertyReferenceExpression"/>
 /// </summary>
 /// <param name="targetObject">The class reference or variable that contains the property</param>
 /// <param name="name">The name of the variable we make reference</param>
 public AlgorithmPropertyReferenceExpression(AlgorithmReferenceExpression targetObject, string name)
 {
     TargetObject = targetObject;
     PropertyName = new AlgorithmIdentifier(name);
 }
Beispiel #5
0
 /// <summary>
 /// Initialize a new instance of <see cref="AlgorithmArrayIndexerExpression"/>
 /// </summary>
 /// <param name="targetObject">the reference to the array</param>
 public AlgorithmArrayIndexerExpression(AlgorithmReferenceExpression targetObject)
 {
     TargetObject = targetObject;
 }