| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- //
- // System.CodeDom CodeMethodInvokeExpression Class implementation
- //
- // Author:
- // Miguel de Icaza ([email protected])
- // Daniel Stodden ([email protected])
- //
- // (C) 2001 Ximian, Inc.
- //
- using System.Runtime.InteropServices;
- namespace System.CodeDom
- {
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeMethodInvokeExpression
- : CodeExpression
- {
- private CodeMethodReferenceExpression method;
- private CodeExpressionCollection parameters;
-
- //
- // Constructors
- //
- public CodeMethodInvokeExpression ()
- {
- }
- public CodeMethodInvokeExpression (CodeMethodReferenceExpression method, params CodeExpression[] parameters)
- {
- this.method = method;
- this.Parameters.AddRange( parameters );
- }
- public CodeMethodInvokeExpression ( CodeExpression targetObject,
- string methodName,
- CodeExpression [] parameters)
- {
- this.method = new CodeMethodReferenceExpression( targetObject, methodName );
- this.Parameters.AddRange (parameters);
- }
- //
- // Properties
- //
- public CodeMethodReferenceExpression Method {
- get {
- return method;
- }
- set {
- method = value;
- }
- }
- public CodeExpressionCollection Parameters {
- get {
- if ( parameters == null )
- parameters = new CodeExpressionCollection();
- return parameters;
- }
- }
- }
- }
|