mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
85 lines
1.5 KiB
C#
Executable File
85 lines
1.5 KiB
C#
Executable File
//
|
|
// System.CodeDom CodeMethodInvokeStatement Class implementation
|
|
//
|
|
// Author:
|
|
// Miguel de Icaza ([email protected])
|
|
//
|
|
// (C) 2001 Ximian, Inc.
|
|
//
|
|
|
|
namespace System.CodeDom {
|
|
|
|
public class CodeMethodInvokeStatement : CodeStatement {
|
|
string methodName;
|
|
CodeExpression targetObject;
|
|
CodeExpressionCollection parameters;
|
|
CodeMethodInvokeExpression methodInvoke;
|
|
|
|
//
|
|
// Constructors
|
|
//
|
|
public CodeMethodInvokeStatement () {}
|
|
|
|
public CodeMethodInvokeStatement (CodeMethodInvokeExpression methodInvoke)
|
|
{
|
|
this.methodInvoke = methodInvoke;
|
|
}
|
|
|
|
public CodeMethodInvokeStatement (CodeExpression targetObject, string methodName)
|
|
{
|
|
this.targetObject = targetObject;
|
|
this.methodName = methodName;
|
|
}
|
|
|
|
public CodeMethodInvokeStatement (CodeExpression targetObject,
|
|
string methodName,
|
|
CodeExpression [] parameters)
|
|
{
|
|
this.targetObject = targetObject;
|
|
this.methodName = methodName;
|
|
this.parameters = new CodeExpressionCollection ();
|
|
this.parameters.AddRange (parameters);
|
|
}
|
|
|
|
public string MethodName {
|
|
get {
|
|
return methodName;
|
|
}
|
|
|
|
set {
|
|
methodName = value;
|
|
}
|
|
}
|
|
|
|
public CodeExpressionCollection Parameters {
|
|
get {
|
|
return parameters;
|
|
}
|
|
|
|
set {
|
|
parameters = value;
|
|
}
|
|
}
|
|
|
|
public CodeExpression TargetObject {
|
|
get {
|
|
return targetObject;
|
|
}
|
|
|
|
set {
|
|
targetObject = value;
|
|
}
|
|
}
|
|
|
|
public CodeMethodInvokeExpression MethodInvoke {
|
|
get {
|
|
return methodInvoke;
|
|
}
|
|
|
|
set {
|
|
methodInvoke = value;
|
|
}
|
|
}
|
|
}
|
|
}
|