mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
65 lines
1.2 KiB
C#
Executable File
65 lines
1.2 KiB
C#
Executable File
//
|
|
// System.CodeDom CodeDelegateInvokeExpression 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 CodeDelegateInvokeExpression
|
|
: CodeExpression
|
|
{
|
|
private CodeExpressionCollection parameters;
|
|
private CodeExpression targetObject;
|
|
|
|
//
|
|
// Constructors
|
|
//
|
|
public CodeDelegateInvokeExpression ()
|
|
{
|
|
}
|
|
|
|
public CodeDelegateInvokeExpression (CodeExpression targetObject)
|
|
{
|
|
this.targetObject = targetObject;
|
|
}
|
|
|
|
public CodeDelegateInvokeExpression (CodeExpression targetObject,
|
|
CodeExpression [] parameters)
|
|
{
|
|
this.targetObject = targetObject;
|
|
this.Parameters.AddRange( parameters );
|
|
}
|
|
|
|
|
|
//
|
|
// Properties
|
|
//
|
|
public CodeExpressionCollection Parameters {
|
|
get {
|
|
if ( parameters == null )
|
|
parameters = new CodeExpressionCollection();
|
|
return parameters;
|
|
}
|
|
}
|
|
|
|
public CodeExpression TargetObject {
|
|
get {
|
|
return targetObject;
|
|
}
|
|
set {
|
|
targetObject = value;
|
|
}
|
|
}
|
|
}
|
|
}
|